Viewport:setProjection: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "<source" to "<syntaxhighlight"
Line 5: Line 5:
=== <translate>Description</translate> ===
=== <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">
<syntaxhighlight lang="lua">
  Viewport:setProjection(matrix)
  Viewport:setProjection(matrix)
</source>
</source>

Revision as of 13:32, 13 July 2023


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. <syntaxhighlight lang="lua">

Viewport:setProjection(matrix)

</source>

Parameters

matrix: (Matrix) Matrix to transform viewport