RenderTarget:draw: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "<source" to "<syntaxhighlight"
Line 5: Line 5:
=== Description ===
=== Description ===
Renders provided object or object hierarchy as a texture.
Renders provided object or object hierarchy as a texture.
<source lang="lua">
<syntaxhighlight lang="lua">
RenderTarget:draw(sprite,x,y)
RenderTarget:draw(sprite,x,y)
</source>
</source>

Revision as of 13:30, 13 July 2023

Available since: Gideros 2013.06
Class: RenderTarget

Description

Renders provided object or object hierarchy as a texture. <syntaxhighlight lang="lua"> RenderTarget:draw(sprite,x,y) </source>

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