RenderTarget:draw

From GiderosMobile
Revision as of 15:31, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "</source>" to "</syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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