3dphotoshoot

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/gfxstate.h	Sun May 31 00:40:26 2015 +0300
     1.3 @@ -0,0 +1,37 @@
     1.4 +#ifndef GFXSTATE_H_
     1.5 +#define GFXSTATE_H_
     1.6 +
     1.7 +enum {
     1.8 +	WORLD_MATRIX,
     1.9 +	VIEW_MATRIX,
    1.10 +	PROJECTION_MATRIX,
    1.11 +	TEXTURE_MATRIX,
    1.12 +
    1.13 +	NUM_MATRICES
    1.14 +};
    1.15 +
    1.16 +#ifdef __cplusplus
    1.17 +extern "C" {
    1.18 +#endif
    1.19 +
    1.20 +void push_matrix(int midx);
    1.21 +void pop_matrix(int midx);
    1.22 +
    1.23 +void set_identity_matrix(int midx);
    1.24 +void set_matrix(int midx, const float *m);
    1.25 +void mult_matrix(int midx, const float *m);
    1.26 +void get_matrix(int midx, float *m);
    1.27 +float *get_matrix_ptr(int midx);
    1.28 +
    1.29 +#ifdef __cplusplus
    1.30 +}
    1.31 +
    1.32 +#ifdef VMATH_MATRIX_H_
    1.33 +void set_matrix4x4(int midx, const Matrix4x4 &m);
    1.34 +void mult_matrix4x4(int midx, const Matrix4x4 &m);
    1.35 +Matrix4x4 &get_matrix4x4(int midx);
    1.36 +#endif	/* VMATH_MATRIX_H_ */
    1.37 +
    1.38 +#endif	/* __cplusplus */
    1.39 +
    1.40 +#endif	/* GFXSTATE_H_ */