Difference between revisions of "RenderTarget.new"

From GiderosMobile
Line 16: Line 16:
 
'''autoscale''': (boolean, default = false) <translate>Whether or not the actual texture size should be scaled to match display resolution.</translate> <br/>
 
'''autoscale''': (boolean, default = false) <translate>Whether or not the actual texture size should be scaled to match display resolution.</translate> <br/>
 
'''depth''': (boolean, default = false) <translate>Indicates this rendertarget will hold depth compoenent. Setting this to true creates a render target suitable for shadow mapping.</translate> <br/>
 
'''depth''': (boolean, default = false) <translate>Indicates this rendertarget will hold depth compoenent. Setting this to true creates a render target suitable for shadow mapping.</translate> <br/>
 +
 +
{{RenderTarget}}

Revision as of 23:37, 3 December 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.
depth: (boolean, default = false) Indicates this rendertarget will hold depth compoenent. Setting this to true creates a render target suitable for shadow mapping.