Available since version: Gideros 2013.06
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
- y: (number, default = 0) The y start position of the texture