Viewport:setProjection: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2016.06<br/>
'''Available since:''' Gideros 2016.06<br/>
=== <translate>Description</translate> ===
'''Class:''' [[Viewport]]<br/>
<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">
=== Description ===
Viewport:setProjection(matrix)
Specifies 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.
</source>
<syntaxhighlight lang="lua">
=== <translate>Parameters</translate> ===
Viewport:setProjection(matrix)
'''matrix''': (Matrix) <translate>Matrix to transform viewport</translate> <br/>
</syntaxhighlight>
 
=== Parameters ===
'''matrix''': (Matrix) Matrix to transform viewport<br/>
 
{{Viewport}}

Latest revision as of 15:12, 20 February 2024

Available since: Gideros 2016.06
Class: Viewport

Description

Specifies 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