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