rayzor
diff src/m3dimpl.h @ 9:70e332156d02
moving along
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 10 Apr 2014 02:31:31 +0300 |
parents | a68dbf80d547 |
children |
line diff
1.1 --- a/src/m3dimpl.h Mon Apr 07 08:46:06 2014 +0300 1.2 +++ b/src/m3dimpl.h Thu Apr 10 02:31:31 2014 +0300 1.3 @@ -12,7 +12,7 @@ 1.4 1.5 struct min3d_vertex { 1.6 float pos[4]; 1.7 - float color[4]; 1.8 + uint32_t color; 1.9 float normal[4]; 1.10 float tex[2]; 1.11 }; 1.12 @@ -50,8 +50,10 @@ 1.13 1.14 extern struct min3d_context *m3dctx; 1.15 1.16 -void draw_point(struct min3d_vertex *v); 1.17 -void draw_line(struct min3d_vertex *v); 1.18 -void draw_poly(struct min3d_vertex *v, int numv); 1.19 +#define ENABLED(x) (m3dctx->state & (1 << x)) 1.20 + 1.21 +void m3d_draw_point(struct min3d_vertex *v); 1.22 +void m3d_draw_line(struct min3d_vertex *v); 1.23 +void m3d_draw_poly(struct min3d_vertex *v, int numv); 1.24 1.25 #endif /* M3DIMPL_H_ */