Difference between revisions of "Viewport:setProjection"

From GiderosMobile
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2016.06<br/>
'''<translate>Available since</translate>:''' Gideros 2016.06<br/>
+
'''Class:''' [[Viewport]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Viewport|Viewport]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<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>
+
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 lang="lua">
+
<syntaxhighlight lang="lua">
Viewport:setProjection(matrix)
+
Viewport:setProjection(matrix)
</source>
+
</syntaxhighlight>
=== <translate>Parameters</translate> ===
+
 
'''matrix''': (Matrix) <translate>Matrix to transform viewport</translate> <br/>
+
=== Parameters ===
 +
'''matrix''': (Matrix) Matrix to transform viewport<br/>
  
 
{{Viewport}}
 
{{Viewport}}

Latest revision as of 16: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