Difference between revisions of "RenderTarget:draw"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2013.06<br/> === Description === Renders provided object or object hierarchy as a texture. <source lang="lua"> = RenderTarget:draw(spr...")
 
Line 4: Line 4:
 
Renders provided object or object hierarchy as a texture.
 
Renders provided object or object hierarchy as a texture.
 
<source lang="lua">
 
<source lang="lua">
= RenderTarget:draw(spritexy,)
+
RenderTarget:draw(sprite,x,y)
 
</source>
 
</source>
'''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) any sprite inherited object or object hierarchy to render (this object doesn't need to be added to the stage hierarchy) ''''''<br/>
'''x:''' (number, default = 0) The x start position of the texture '''optional'''<br/>
+
'''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/>
+
'''y''': (number, default = 0) The y start position of the texture '''optional'''<br/>

Revision as of 11:17, 23 August 2018

Available since: Gideros 2013.06

Description

Renders provided object or object hierarchy as a texture.

 RenderTarget:draw(sprite,x,y)

'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