Difference between revisions of "RenderTarget:draw"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | + | '''Available since:''' Gideros 2013.06<br/> | |
− | ''' | + | '''Class:''' [[RenderTarget]]<br/> |
− | ''' | + | |
− | === | + | === Description === |
− | + | Renders provided object or object hierarchy as a texture. | |
<source lang="lua"> | <source lang="lua"> | ||
− | + | RenderTarget:draw(sprite,x,y) | |
</source> | </source> | ||
− | === | + | |
− | '''sprite''': (Sprite) | + | === Parameters === |
− | '''x''': (number, default = 0) | + | '''sprite''': (Sprite) any sprite inherited object or object hierarchy to render (this object doesn't need to be added to the stage hierarchy)<br/> |
− | '''y''': (number, default = 0) | + | '''x''': (number, default = 0) the x start position of the texture '''optional'''<br/> |
+ | '''y''': (number, default = 0) the y start position of the texture '''optional'''<br/> | ||
{{RenderTarget}} | {{RenderTarget}} |
Revision as of 02:14, 24 December 2020
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