Difference between revisions of "RenderTarget.new"

From GiderosMobile
(remove language stuff)
Line 13: Line 13:
 
'''height''': (number) height of rendered texture<br/>
 
'''height''': (number) height of rendered texture<br/>
 
'''filtering''': (boolean) sets texture filtering ('''default = false''')<br/>
 
'''filtering''': (boolean) sets texture filtering ('''default = false''')<br/>
'''repeat''': (boolean) sets texture repeating ('''default = false''')<br/>
+
'''repeating''': (boolean) sets texture repeating ('''default = false''')<br/>
 
'''autoscale''': (boolean) whether the actual texture size should be scaled to match display resolution ('''default = false''')<br/>
 
'''autoscale''': (boolean) whether the actual texture size should be scaled to match display resolution ('''default = false''')<br/>
 
'''depth''': (boolean) indicates this rendertarget will hold depth component. Setting this to true creates a render target suitable for shadow mapping ('''default = false''')<br/>
 
'''depth''': (boolean) indicates this rendertarget will hold depth component. Setting this to true creates a render target suitable for shadow mapping ('''default = false''')<br/>
  
 
{{RenderTarget}}
 
{{RenderTarget}}

Revision as of 05:26, 31 December 2020

Available since: Gideros 2013.06
Class: RenderTarget

Description

Creates a 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) sets texture filtering (default = false)
repeating: (boolean) sets texture repeating (default = false)
autoscale: (boolean) whether the actual texture size should be scaled to match display resolution (default = false)
depth: (boolean) indicates this rendertarget will hold depth component. Setting this to true creates a render target suitable for shadow mapping (default = false)