4 |
|
* |
5 |
|
* Include after standard.h, object.h and octree.h |
6 |
|
*/ |
7 |
+ |
#ifndef _RAD_MESH_H_ |
8 |
+ |
#define _RAD_MESH_H_ |
9 |
+ |
#ifdef __cplusplus |
10 |
+ |
extern "C" { |
11 |
+ |
#endif |
12 |
|
|
13 |
|
#include "copyright.h" |
14 |
|
|
117 |
|
/* magic number for mesh files */ |
118 |
|
#define MESHMAGIC ( 1 *MAXOBJSIZ+311) /* increment first value */ |
119 |
|
|
115 |
– |
#ifdef NOPROTO |
120 |
|
|
117 |
– |
extern MESH *getmesh(); |
118 |
– |
extern MESHINST *getmeshinst(); |
119 |
– |
extern int getmeshtrivid(); |
120 |
– |
extern int getmeshvert(); |
121 |
– |
extern int getmeshtri(); |
122 |
– |
extern OBJREC *getmeshpseudo(); |
123 |
– |
extern int4 addmeshvert(); |
124 |
– |
extern OBJECT addmeshtri(); |
125 |
– |
extern char *checkmesh(); |
126 |
– |
extern void printmeshstats(); |
127 |
– |
extern void freemesh(); |
128 |
– |
extern void freemeshinst(); |
129 |
– |
extern void readmesh(); |
130 |
– |
extern void writemesh(); |
131 |
– |
|
132 |
– |
#else |
133 |
– |
|
121 |
|
extern MESH *getmesh(char *mname, int flags); |
122 |
|
extern MESHINST *getmeshinst(OBJREC *o, int flags); |
123 |
|
extern int getmeshtrivid(int4 tvid[3], OBJECT *mo, |
135 |
|
extern void readmesh(MESH *mp, char *path, int flags); |
136 |
|
extern void writemesh(MESH *mp, FILE *fp); |
137 |
|
|
138 |
< |
#endif /* NOPROTO */ |
138 |
> |
|
139 |
> |
#ifdef __cplusplus |
140 |
> |
} |
141 |
> |
#endif |
142 |
> |
#endif /* _RAD_MESH_H_ */ |
143 |
> |
|