1 #ifndef MSP_GL_PROJECTION_H_
2 #define MSP_GL_PROJECTION_H_
7 // Everything in this header is deprecated - use the classes in matrix.h instead
10 Sets up an orthogonal projection.
12 void ortho(double, double, double, double, double, double);
15 Sets up an orthogonal projection, with origin at the center of the screen.
17 void ortho_centered(double, double);
20 Sets up an orthogonal projection, with origin at the bottom left corner of the
23 void ortho_bottomleft(double, double);
26 Sets up an orthogonal projection, with origin at the top left corner of the
27 screen. The Y coordinate is reversed and grows downwards.
29 void ortho_topleft(double, double);
32 Sets up a perspective projection.
34 void frustum(double, double, double, double, double, double);
37 Sets up a perspective projection, with origin at the center of the screen.
39 void frustum_centered(double width, double height, double near, double far);
42 Sets up a centered perspective projection in a simple way.
44 void perspective(double fov_y, double aspect, double near, double far);