comparison mupdf-source/thirdparty/freeglut/progs/demos/shapes/glmatrix.h @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 #ifndef GLMATRIX_H_
2 #define GLMATRIX_H_
3
4 #ifndef GL_MODELVIEW
5 #define GL_MODELVIEW 0x1700
6 #endif
7 #ifndef GL_PROJECTION
8 #define GL_PROJECTION 0x1701
9 #endif
10 #ifndef GL_TEXTURE
11 #define GL_TEXTURE 0x1702
12 #endif
13
14 void gl_matrix_mode(int mmode);
15 void gl_push_matrix(void);
16 void gl_pop_matrix(void);
17 void gl_load_identity(void);
18 void gl_load_matrixf(const float *mat);
19 void gl_mult_matrixf(const float *mat);
20 void gl_translatef(float x, float y, float z);
21 void gl_rotatef(float angle, float x, float y, float z);
22 void gl_scalef(float x, float y, float z);
23 void gl_ortho(float left, float right, float bottom, float top, float znear, float zfar);
24 void gl_frustum(float left, float right, float bottom, float top, float znear, float zfar);
25 void glu_perspective(float vfov, float aspect, float znear, float zfar);
26
27 /* getters */
28 float* get_matrix(int mm);
29 float* get_inv_transpose_3x3(int mm);
30
31 #endif /* GLMATRIX_H_ */