[ Maverik Level 1 functions ]


mav_windowPerspectiveSet

Summary

Set perspective parameters for a window.


Syntax

void mav_windowPerspectiveSet(MAV_window *w, float ncp, float fcp, float fov, float aspect);


Description

This function sets the perspective parameters for window w. ncp and fcp respectively specify the positions of the near and far clip planes. fov specifies the field of view, measured vertically in degrees fov/2 up and fov2 down from the view direction vector. aspect gives the aspect ratio of the view, which will normally be set to match the aspect ratio of window w.


Back to the index page.