gba-x3dtest
diff src/x3d.h @ 7:158d23956801
started adding rendering pipeline stuff
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 18 Jun 2014 06:20:07 +0300 |
parents | |
children | fb0a0d6a8b52 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/x3d.h Wed Jun 18 06:20:07 2014 +0300 1.3 @@ -0,0 +1,28 @@ 1.4 +#ifndef X3D_H_ 1.5 +#define X3D_H_ 1.6 + 1.7 +#include <stdint.h> 1.8 + 1.9 +enum { 1.10 + X3D_POINTS = 1, 1.11 + X3D_LINES = 2, 1.12 + X3D_TRIANGLES = 3, 1.13 + X3D_QUADS = 4 1.14 +}; 1.15 + 1.16 +void x3d_projection(int32_t fov, int32_t aspect, int32_t nearz, int32_t farz); 1.17 + 1.18 +int x3d_push_matrix(void); 1.19 +int x3d_pop_matrix(void); 1.20 +void x3d_load_matrix(int32_t *m); 1.21 +void x3d_mult_matrix(int32_t *m); 1.22 +void x3d_load_identity(void); 1.23 +void x3d_translate(int32_t x, int32_t y, int32_t z); 1.24 +void x3d_rotate(int32_t angle, int32_t x, int32_t y, int32_t z); 1.25 +void x3d_scale(int32_t x, int32_t y, int32_t z); 1.26 + 1.27 +void x3d_vertex_array(int count, int32_t *ptr); 1.28 +void x3d_color_array(int count, int32_t *ptr); 1.29 +int x3d_draw_arrays(int prim); 1.30 + 1.31 +#endif /* X3D_H_ */