rayzor

view src/m3dimpl.h @ 0:2a5340a6eee4

rayzor first commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 05 Apr 2014 08:46:27 +0300
parents
children a826bf0fb169
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_context {
14 struct m3d_image *cbuf;
15 uint16_t *zbuf;
17 unsigned long state;
19 int mmode; /* matrix mode */
20 struct min3d_mstack mstack[2];
21 } *m3dctx;
23 #endif /* M3DIMPL_H_ */