diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mupdf-source/thirdparty/freeglut/progs/demos/shapes/glmatrix.h	Mon Sep 15 11:43:07 2025 +0200
@@ -0,0 +1,31 @@
+#ifndef GLMATRIX_H_
+#define GLMATRIX_H_
+
+#ifndef GL_MODELVIEW
+#define GL_MODELVIEW		0x1700
+#endif
+#ifndef GL_PROJECTION
+#define GL_PROJECTION		0x1701
+#endif
+#ifndef GL_TEXTURE
+#define GL_TEXTURE			0x1702
+#endif
+
+void gl_matrix_mode(int mmode);
+void gl_push_matrix(void);
+void gl_pop_matrix(void);
+void gl_load_identity(void);
+void gl_load_matrixf(const float *mat);
+void gl_mult_matrixf(const float *mat);
+void gl_translatef(float x, float y, float z);
+void gl_rotatef(float angle, float x, float y, float z);
+void gl_scalef(float x, float y, float z);
+void gl_ortho(float left, float right, float bottom, float top, float znear, float zfar);
+void gl_frustum(float left, float right, float bottom, float top, float znear, float zfar);
+void glu_perspective(float vfov, float aspect, float znear, float zfar);
+
+/* getters */
+float* get_matrix(int mm);
+float* get_inv_transpose_3x3(int mm);
+
+#endif	/* GLMATRIX_H_ */