rayzor

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/m3dimpl.h	Sat Apr 05 08:46:27 2014 +0300
     1.3 @@ -0,0 +1,23 @@
     1.4 +#ifndef M3DIMPL_H_
     1.5 +#define M3DIMPL_H_
     1.6 +
     1.7 +#include "min3d.h"
     1.8 +
     1.9 +#define MSTACK_SIZE		16
    1.10 +
    1.11 +struct min3d_mstack {
    1.12 +	float m[MSTACK_SIZE][16];
    1.13 +	int top;
    1.14 +};
    1.15 +
    1.16 +struct min3d_context {
    1.17 +	struct m3d_image *cbuf;
    1.18 +	uint16_t *zbuf;
    1.19 +
    1.20 +	unsigned long state;
    1.21 +
    1.22 +	int mmode;	/* matrix mode */
    1.23 +	struct min3d_mstack mstack[2];
    1.24 +} *m3dctx;
    1.25 +
    1.26 +#endif	/* M3DIMPL_H_ */