This function builds a perspective projection matrix matrix based on field of view, using the specified parameters listed below.
matrix_build_projection_perspective_fov(fov_y, aspect, znear, zfar);
Argument Description fov The angle of the field of view. aspect The aspect ratio of the field of view. znear The near clipping plane. zfar The far clipping plane.
matrix_build_projection_perspective_fov(60, 320/240, 1.0,
The above code creates a field of view projection matrix which is then stored in a variable. This matrix is then used to set up the camera assigned to view port.