Difference between revisions of "RenderTarget:draw"
From GiderosMobile
Line 12: | Line 12: | ||
'''x''': (number, default = 0) <translate>The x start position of the texture</translate> '''optional'''<br/> | '''x''': (number, default = 0) <translate>The x start position of the texture</translate> '''optional'''<br/> | ||
'''y''': (number, default = 0) <translate>The y start position of the texture</translate> '''optional'''<br/> | '''y''': (number, default = 0) <translate>The y start position of the texture</translate> '''optional'''<br/> | ||
+ | |||
+ | {{RenderTarget}} |
Revision as of 22:37, 3 December 2019
Available since: Gideros 2013.06
Class: RenderTarget
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