Difference between revisions of "RenderTarget:draw"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''<translate>Available since</translate>:''' Gideros 2013.06<br/> | '''<translate>Available since</translate>:''' Gideros 2013.06<br/> | ||
+ | '''<translate>Class</translate>:''' [[Special:MyLanguage/RenderTarget|RenderTarget]]<br/> | ||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
<translate>Renders provided object or object hierarchy as a texture.</translate> | <translate>Renders provided object or object hierarchy as a texture.</translate> |
Revision as of 09:27, 24 August 2018
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