blob: 130f0f1602849eedd699ce168d0ef9fffaa22eaf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef NEOFX_TYPES_H
#define NEOFX_TYPES_H
#pragma pack(push, 2)
typedef union _MATRIX {
float m[4][4];
float f[16];
} MATRIX;
typedef struct _VECTOR_VERTEX {
float x, y, z;
} VECTOR, VERTEX;
typedef struct _TEXCOORDS {
float s, t;
} TEXCOORDS;
typedef struct _TRIANGLE {
unsigned char type;
unsigned char visible;
VERTEX vertices[3];
VECTOR normal;
int texture;
TEXCOORDS texcoords[3];
} TRIANGLE;
#pragma pack(pop)
#endif
|