Difference between revisions of "RenderTarget.new"

From GiderosMobile
Line 6: Line 6:
 
<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,depth)
 
</source>
 
</source>
 +
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
 
'''width''': (number) <translate>width of rendered texture</translate> <br/>
 
'''width''': (number) <translate>width of rendered texture</translate> <br/>

Revision as of 12:06, 26 November 2019


Available since: Gideros 2013.06
Class: RenderTarget

Description

Creates new RenderTarget object

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

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.