Difference between revisions of "Viewport:setProjection"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2016.06<br/>
+
'''<translate>Available since</translate>:''' Gideros 2016.06<br/>
=== Description ===
+
=== <translate>Description</translate> ===
 
<translate>Specify a projection matrix to use when displaying the content. Useful for rendering 3D worlds where units are not related to screen dimensions, and where a perspective must be applied.</translate>
 
<translate>Specify a projection matrix to use when displaying the content. Useful for rendering 3D worlds where units are not related to screen dimensions, and where a perspective must be applied.</translate>
 
<source lang="lua">
 
<source lang="lua">
 
  Viewport:setProjection(matrix)
 
  Viewport:setProjection(matrix)
 
</source>
 
</source>
=== Parameters ===
+
=== <translate>Parameters</translate> ===
 
'''matrix''': (Matrix) <translate>Matrix to transform viewport</translate> <br/>
 
'''matrix''': (Matrix) <translate>Matrix to transform viewport</translate> <br/>

Revision as of 07:29, 24 August 2018

Available since: Gideros 2016.06

Description

Specify a projection matrix to use when displaying the content. Useful for rendering 3D worlds where units are not related to screen dimensions, and where a perspective must be applied.

 Viewport:setProjection(matrix)

Parameters

matrix: (Matrix) Matrix to transform viewport