Viewport:setProjection

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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