3dphotoshoot

view src/gfxstate.h @ 10:c71c477521ca

converting to GLES2 and C++
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 31 May 2015 00:40:26 +0300
parents
children
line source
1 #ifndef GFXSTATE_H_
2 #define GFXSTATE_H_
4 enum {
5 WORLD_MATRIX,
6 VIEW_MATRIX,
7 PROJECTION_MATRIX,
8 TEXTURE_MATRIX,
10 NUM_MATRICES
11 };
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
17 void push_matrix(int midx);
18 void pop_matrix(int midx);
20 void set_identity_matrix(int midx);
21 void set_matrix(int midx, const float *m);
22 void mult_matrix(int midx, const float *m);
23 void get_matrix(int midx, float *m);
24 float *get_matrix_ptr(int midx);
26 #ifdef __cplusplus
27 }
29 #ifdef VMATH_MATRIX_H_
30 void set_matrix4x4(int midx, const Matrix4x4 &m);
31 void mult_matrix4x4(int midx, const Matrix4x4 &m);
32 Matrix4x4 &get_matrix4x4(int midx);
33 #endif /* VMATH_MATRIX_H_ */
35 #endif /* __cplusplus */
37 #endif /* GFXSTATE_H_ */