Difference between revisions of "RenderTarget.new"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2013.06<br/>
+
'''<translate>Available since</translate>:''' Gideros 2013.06<br/>
=== Description ===
+
=== <translate>Description</translate> ===
 
<translate>Creates new RenderTarget object</translate>
 
<translate>Creates new RenderTarget object</translate>
 
<source lang="lua">
 
<source lang="lua">
 
  RenderTarget.new(width,height,filtering,repeat,autoscale)
 
  RenderTarget.new(width,height,filtering,repeat,autoscale)
 
</source>
 
</source>
=== Parameters ===
+
=== <translate>Parameters</translate> ===
 
'''width''': (number) <translate>width of rendered texture</translate> <br/>
 
'''width''': (number) <translate>width of rendered texture</translate> <br/>
 
'''height''': (number) <translate>height of rendered texture</translate> <br/>
 
'''height''': (number) <translate>height of rendered texture</translate> <br/>

Revision as of 07:28, 24 August 2018

Available since: Gideros 2013.06

Description

Creates new RenderTarget object

 RenderTarget.new(width,height,filtering,repeat,autoscale)

Parameters

width: (number) width of rendered texture
height: (number) height of rendered texture
filtering: (boolean, default = false) Whether or not the texture is filtered.
repeat: (boolean, default = false) Whether or not the texture is repeating.
autoscale: (boolean, default = false) Whether or not the actual texture size should be scaled to match display resolution.