fixed build on MSVC6
[freeglut] / progs / demos / shapes / glmatrix.h
1 #ifndef GLMATRIX_H_\r
2 #define GLMATRIX_H_\r
3 \r
4 #ifndef GL_MODELVIEW\r
5 #define GL_MODELVIEW            0x1700\r
6 #endif\r
7 #ifndef GL_PROJECTION\r
8 #define GL_PROJECTION           0x1701\r
9 #endif\r
10 #ifndef GL_TEXTURE\r
11 #define GL_TEXTURE                      0x1702\r
12 #endif\r
13 \r
14 void gl_matrix_mode(int mmode);\r
15 void gl_push_matrix(void);\r
16 void gl_pop_matrix(void);\r
17 void gl_load_identity(void);\r
18 void gl_load_matrixf(const float *mat);\r
19 void gl_mult_matrixf(const float *mat);\r
20 void gl_translatef(float x, float y, float z);\r
21 void gl_rotatef(float angle, float x, float y, float z);\r
22 void gl_scalef(float x, float y, float z);\r
23 void gl_ortho(float left, float right, float bottom, float top, float znear, float zfar);\r
24 void gl_frustum(float left, float right, float bottom, float top, float znear, float zfar);\r
25 void glu_perspective(float vfov, float aspect, float znear, float zfar);\r
26 \r
27 /* getters */\r
28 float* get_matrix(int mm);\r
29 float* get_inv_transpose_3x3(int mm);\r
30 \r
31 #endif  /* GLMATRIX_H_ */\r