]> git.tdb.fi Git - libs/gl.git/blob - source/projection.h
Drop Id tags and copyright notices from files
[libs/gl.git] / source / projection.h
1 #ifndef MSP_GL_PROJECTION_H_
2 #define MSP_GL_PROJECTION_H_
3
4 namespace Msp {
5 namespace GL {
6
7 // Everything in this header is deprecated - use the classes in matrix.h instead
8
9 /**
10 Sets up an orthogonal projection.
11 */
12 void ortho(double, double, double, double, double, double);
13
14 /**
15 Sets up an orthogonal projection, with origin at the center of the screen.
16 */
17 void ortho_centered(double, double);
18
19 /**
20 Sets up an orthogonal projection, with origin at the bottom left corner of the
21 screen.
22 */
23 void ortho_bottomleft(double, double);
24
25 /**
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.
28 */
29 void ortho_topleft(double, double);
30
31 /**
32 Sets up a perspective projection.
33 */
34 void frustum(double, double, double, double, double, double);
35
36 /**
37 Sets up a perspective projection, with origin at the center of the screen.
38 */
39 void frustum_centered(double width, double height, double near, double far);
40
41 /**
42 Sets up a centered perspective projection in a simple way.
43 */
44 void perspective(double fov_y, double aspect, double near, double far);
45
46 } // namespace GL
47 } // namespace Msp
48
49 #endif