Upset Baby Games

Upset Baby Games

Navigation

ubg_3d2d_create_translator

Syntax:

ubg_3d2d_create_translator(view, proj, port);
Argument name Type Description
view matrix view matrix of your camera
proj matrix projection matrix of your camera
port real viewport that your camera is rendered in

Returns: (array)

Description:

Creates a translator structure to handle converting between 2D and 3D. Every time you change a property contained by the translator you must make sure you update the translator!

Examples:

ubg_3d2d_create_translator(matrix_get(matrix_view), matrix_get(matrix_projection), view_current);