camera_get_proj_mat


Description

This function can be used to retrieve the projection matrix. The function returns the matrix ID value which can then be used in other matrix functions or to set the projection matrix of another camera (using camera_set_proj_mat).


Syntax:

camera_get_proj_mat(camera_id)


Arguments:

Argument Description
camera_id The unique camera ID value returned when you created the camera


Returns:

Matrix ID (real)


Example:

mat = camera_get_proj_mat(camera_view[0]);

The above code gets the projection matrix for the camera assigned to view port[0].


Back: Cameras
Next: camera_get_update_script
© Copyright YoYo Games Ltd. 2018 All Rights Reserved