Difference between revisions of "RenderTarget:draw"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2013.06<br/>
'''<translate>Available since</translate>:''' Gideros 2013.06<br/>
+
'''Class:''' [[RenderTarget]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/RenderTarget|RenderTarget]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Renders provided object or object hierarchy as a texture.</translate>
+
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>
+
</syntaxhighlight>
=== <translate>Parameters</translate> ===
+
 
'''sprite''': (Sprite) <translate>any sprite inherited object or object hierarchy to render (this object doesn't need to be added to the stage hierarchy)</translate> <br/>
+
=== Parameters ===
'''x''': (number, default = 0) <translate>The x start position of the texture</translate> '''optional'''<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/>
'''y''': (number, default = 0) <translate>The y start position of the texture</translate> '''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/>
  
 
{{RenderTarget}}
 
{{RenderTarget}}

Latest revision as of 14:31, 13 July 2023

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