nuclear@7: #ifndef X3D_H_ nuclear@7: #define X3D_H_ nuclear@7: nuclear@7: #include nuclear@7: nuclear@7: enum { nuclear@7: X3D_POINTS = 1, nuclear@7: X3D_LINES = 2, nuclear@7: X3D_TRIANGLES = 3, nuclear@7: X3D_QUADS = 4 nuclear@7: }; nuclear@7: nuclear@7: void x3d_projection(int32_t fov, int32_t aspect, int32_t nearz, int32_t farz); nuclear@7: nuclear@7: int x3d_push_matrix(void); nuclear@7: int x3d_pop_matrix(void); nuclear@7: void x3d_load_matrix(int32_t *m); nuclear@7: void x3d_mult_matrix(int32_t *m); nuclear@7: void x3d_load_identity(void); nuclear@7: void x3d_translate(int32_t x, int32_t y, int32_t z); nuclear@7: void x3d_rotate(int32_t angle, int32_t x, int32_t y, int32_t z); nuclear@7: void x3d_scale(int32_t x, int32_t y, int32_t z); nuclear@7: nuclear@8: void x3d_vertex_array(int count, const int32_t *ptr); nuclear@8: void x3d_color_array(int count, const int32_t *ptr); nuclear@8: int x3d_draw_arrays(int prim, int vnum); nuclear@8: nuclear@8: void x3d_color(int32_t r, int32_t g, int32_t b); nuclear@7: nuclear@7: #endif /* X3D_H_ */