1 |
/* RCSid $Id: instance.h,v 2.4 2003/02/25 02:47:21 greg Exp $ */ |
2 |
/* |
3 |
* instance.h - header file for routines using octree objects. |
4 |
* |
5 |
* Include after object.h and octree.h |
6 |
*/ |
7 |
#ifndef _RAD_INSTANCE_H_ |
8 |
#define _RAD_INSTANCE_H_ |
9 |
#ifdef __cplusplus |
10 |
extern "C" { |
11 |
#endif |
12 |
|
13 |
#include "copyright.h" |
14 |
|
15 |
typedef struct scene { |
16 |
char *name; /* octree name */ |
17 |
int nref; /* number of references */ |
18 |
int ldflags; /* what was loaded */ |
19 |
CUBE scube; /* scene cube */ |
20 |
OBJECT firstobj, nobjs; /* first object and count */ |
21 |
struct scene *next; /* next in list */ |
22 |
} SCENE; /* loaded octree */ |
23 |
|
24 |
typedef struct { |
25 |
FULLXF x; /* forward and backward transforms */ |
26 |
SCENE *obj; /* loaded object */ |
27 |
} INSTANCE; /* instance of octree */ |
28 |
|
29 |
|
30 |
extern SCENE *getscene(char *sname, int flags); |
31 |
extern INSTANCE *getinstance(OBJREC *o, int flags); |
32 |
extern void freescene(SCENE *sc); |
33 |
extern void freeinstance(OBJREC *o); |
34 |
|
35 |
|
36 |
#ifdef __cplusplus |
37 |
} |
38 |
#endif |
39 |
#endif /* _RAD_INSTANCE_H_ */ |
40 |
|