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