glmatrix.h 914 B

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