6 |
|
*/ |
7 |
|
#ifndef _RAD_MESH_H_ |
8 |
|
#define _RAD_MESH_H_ |
9 |
+ |
|
10 |
+ |
#include "lookup.h" |
11 |
+ |
|
12 |
|
#ifdef __cplusplus |
13 |
|
extern "C" { |
14 |
|
#endif |
15 |
|
|
13 |
– |
#include "copyright.h" |
14 |
– |
|
15 |
– |
#include "lookup.h" |
16 |
– |
|
16 |
|
#ifndef BYTE |
17 |
|
#define BYTE unsigned char |
18 |
|
#endif |
78 |
|
int nref; /* reference count */ |
79 |
|
int ldflags; /* what we've loaded */ |
80 |
|
CUBE mcube; /* bounds and octree */ |
81 |
< |
FLOAT uvlim[2][2]; /* local coordinate extrema */ |
81 |
> |
RREAL uvlim[2][2]; /* local coordinate extrema */ |
82 |
|
OBJECT mat0; /* base material index */ |
83 |
|
OBJECT nmats; /* number of materials */ |
84 |
|
MESHPATCH *patch; /* mesh patch list */ |
105 |
|
int fl; /* setting flags */ |
106 |
|
FVECT v; /* vertex location */ |
107 |
|
FVECT n; /* vertex normal */ |
108 |
< |
FLOAT uv[2]; /* local coordinates */ |
108 |
> |
RREAL uv[2]; /* local coordinates */ |
109 |
|
} MESHVERT; |
110 |
|
|
111 |
|
/* mesh format identifier */ |