Difference between revisions of "RenderTarget.new"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2013.06<br/>
 
'''Available since:''' Gideros 2013.06<br/>
 
=== Description ===
 
=== Description ===
Creates new RenderTarget object
+
<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 ===
 
=== Parameters ===
'''width''': (number) width of rendered texture <br/>
+
'''width''': (number) <translate>width of rendered texture</translate> <br/>
'''height''': (number) height of rendered texture <br/>
+
'''height''': (number) <translate>height of rendered texture</translate> <br/>
'''filtering''': (boolean, default = false) Whether or not the texture is filtered. <br/>
+
'''filtering''': (boolean, default = false) <translate>Whether or not the texture is filtered.</translate> <br/>
'''repeat''': (boolean, default = false) Whether or not the texture is repeating. <br/>
+
'''repeat''': (boolean, default = false) <translate>Whether or not the texture is repeating.</translate> <br/>
'''autoscale''': (boolean, default = false) Whether or not the actual texture size should be scaled to match display resolution. <br/>
+
'''autoscale''': (boolean, default = false) <translate>Whether or not the actual texture size should be scaled to match display resolution.</translate> <br/>

Revision as of 14:34, 23 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.