rayzor

view src/m3dimpl.h @ 3:9035507275d6

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 05 Apr 2014 20:53:44 +0300
parents c273c6f799a4
children 5fcf72837b69
line source
1 #ifndef M3DIMPL_H_
2 #define M3DIMPL_H_
4 #include "min3d.h"
6 #define MSTACK_SIZE 16
8 struct min3d_mstack {
9 float m[MSTACK_SIZE][16];
10 int top;
11 };
13 struct min3d_vertex {
14 float pos[4];
15 float color[4];
16 float normal[4];
17 float tex[2];
18 };
20 struct min3d_context {
21 struct m3d_image *cbuf;
22 uint16_t *zbuf;
24 unsigned long state;
26 int mmode; /* matrix mode */
27 struct min3d_mstack mstack[2];
28 };
30 extern struct min3d_context *m3dctx;
32 void draw_point(struct min3d_vertex *v);
33 void draw_line(struct min3d_vertex *v);
34 void draw_poly(struct min3d_vertex *v, int numv);
36 #endif /* M3DIMPL_H_ */