Difference between revisions of "Viewport:setProjection"

From GiderosMobile
Line 10: Line 10:
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
 
'''matrix''': (Matrix) <translate>Matrix to transform viewport</translate> <br/>
 
'''matrix''': (Matrix) <translate>Matrix to transform viewport</translate> <br/>
 +
 +
{{Viewport}}

Revision as of 02:55, 4 December 2019


Available since: Gideros 2016.06
Class: Viewport

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