annotate src/x3d.h @ 15:b755fb002f17
foo
author |
John Tsiombikas <nuclear@member.fsf.org> |
date |
Wed, 25 Jun 2014 17:02:48 +0300 |
parents |
ecc022a21279 |
children |
0a7f402892b3 |
rev |
line source |
nuclear@7
|
1 #ifndef X3D_H_
|
nuclear@7
|
2 #define X3D_H_
|
nuclear@7
|
3
|
nuclear@7
|
4 #include <stdint.h>
|
nuclear@7
|
5
|
nuclear@7
|
6 enum {
|
nuclear@7
|
7 X3D_POINTS = 1,
|
nuclear@7
|
8 X3D_LINES = 2,
|
nuclear@7
|
9 X3D_TRIANGLES = 3,
|
nuclear@7
|
10 X3D_QUADS = 4
|
nuclear@7
|
11 };
|
nuclear@7
|
12
|
nuclear@12
|
13 void x3d_projection(int fov, int32_t aspect, int32_t nearz, int32_t farz);
|
nuclear@7
|
14
|
nuclear@7
|
15 int x3d_push_matrix(void);
|
nuclear@7
|
16 int x3d_pop_matrix(void);
|
nuclear@7
|
17 void x3d_load_matrix(int32_t *m);
|
nuclear@7
|
18 void x3d_mult_matrix(int32_t *m);
|
nuclear@7
|
19 void x3d_load_identity(void);
|
nuclear@7
|
20 void x3d_translate(int32_t x, int32_t y, int32_t z);
|
nuclear@7
|
21 void x3d_rotate(int32_t angle, int32_t x, int32_t y, int32_t z);
|
nuclear@7
|
22 void x3d_scale(int32_t x, int32_t y, int32_t z);
|
nuclear@7
|
23
|
nuclear@8
|
24 void x3d_vertex_array(int count, const int32_t *ptr);
|
nuclear@8
|
25 void x3d_color_array(int count, const int32_t *ptr);
|
nuclear@15
|
26 void x3d_texcoord_array(int count, const int32_t *ptr);
|
nuclear@12
|
27
|
nuclear@12
|
28 int x3d_draw(int prim, int vnum);
|
nuclear@12
|
29 int x3d_draw_indexed(int prim, int count, uint16_t *ptr);
|
nuclear@8
|
30
|
nuclear@9
|
31 void x3d_color_index(int cidx);
|
nuclear@8
|
32 void x3d_color(int32_t r, int32_t g, int32_t b);
|
nuclear@7
|
33
|
nuclear@7
|
34 #endif /* X3D_H_ */
|