Difference between revisions of "RenderTarget.new"

From GiderosMobile
(remove language stuff)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2013.06<br/>
'''<translate>Available since</translate>:''' Gideros 2013.06<br/>
+
'''Class:''' [[RenderTarget]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/RenderTarget|RenderTarget]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Creates new RenderTarget object</translate>
+
Creates a new RenderTarget object.
 
<source lang="lua">
 
<source lang="lua">
RenderTarget.new(width,height,filtering,repeat,autoscale,depth)
+
RenderTarget.new(width,height,filtering,repeat,autoscale,depth)
 
</source>
 
</source>
  
=== <translate>Parameters</translate> ===
+
=== Parameters ===
'''width''': (number) <translate>width of rendered texture</translate> <br/>
+
'''width''': (number) width of rendered texture<br/>
'''height''': (number) <translate>height of rendered texture</translate> <br/>
+
'''height''': (number) height of rendered texture<br/>
'''filtering''': (boolean, default = false) <translate>Whether or not the texture is filtered.</translate> <br/>
+
'''filtering''': (boolean) sets texture filtering ('''default = false''')<br/>
'''repeat''': (boolean, default = false) <translate>Whether or not the texture is repeating.</translate> <br/>
+
'''repeat''': (boolean) sets texture repeating ('''default = false''')<br/>
'''autoscale''': (boolean, default = false) <translate>Whether or not the actual texture size should be scaled to match display resolution.</translate> <br/>
+
'''autoscale''': (boolean) whether the actual texture size should be scaled to match display resolution ('''default = false''')<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) 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 02:11, 24 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)
repeat: (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)