Difference between revisions of "RenderTarget:draw"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2013.06<br/> | '''Available since:''' Gideros 2013.06<br/> | ||
=== Description === | === Description === | ||
− | Renders provided object or object hierarchy as a texture. | + | <translate>Renders provided object or object hierarchy as a texture.</translate> |
<source lang="lua"> | <source lang="lua"> | ||
RenderTarget:draw(sprite,x,y) | RenderTarget:draw(sprite,x,y) | ||
</source> | </source> | ||
=== Parameters === | === Parameters === | ||
− | '''sprite''': (Sprite) any sprite inherited object or object hierarchy to render (this object doesn't need to be added to the stage hierarchy) <br/> | + | '''sprite''': (Sprite) <translate>any sprite inherited object or object hierarchy to render (this object doesn't need to be added to the stage hierarchy)</translate> <br/> |
− | '''x''': (number, default = 0) The x start position of the texture '''optional'''<br/> | + | '''x''': (number, default = 0) <translate>The x start position of the texture</translate> '''optional'''<br/> |
− | '''y''': (number, default = 0) The y start position of the texture '''optional'''<br/> | + | '''y''': (number, default = 0) <translate>The y start position of the texture</translate> '''optional'''<br/> |
Revision as of 13:33, 23 August 2018
Available since: Gideros 2013.06
Description
Renders provided object or object hierarchy as a texture.
RenderTarget:draw(sprite,x,y)
Parameters
sprite: (Sprite) any sprite inherited object or object hierarchy to render (this object doesn't need to be added to the stage hierarchy)
x: (number, default = 0) The x start position of the texture optional
y: (number, default = 0) The y start position of the texture optional