1 |
< |
/* Copyright (c) 1990 Regents of the University of California */ |
2 |
< |
|
3 |
< |
/* SCCSid "$SunId$ LBL" */ |
4 |
< |
|
1 |
> |
/* RCSid $Id$ */ |
2 |
|
/* |
3 |
|
* instance.h - header file for routines using octree objects. |
4 |
|
* |
5 |
< |
* 11/10/88 |
5 |
> |
* Include after object.h and octree.h |
6 |
|
*/ |
7 |
|
|
8 |
< |
#include "octree.h" |
8 |
> |
#include "copyright.h" |
9 |
|
|
10 |
|
typedef struct scene { |
11 |
|
char *name; /* octree name */ |
12 |
+ |
int nref; /* number of references */ |
13 |
|
int ldflags; /* what was loaded */ |
14 |
|
CUBE scube; /* scene cube */ |
15 |
+ |
OBJECT firstobj, nobjs; /* first object and count */ |
16 |
|
struct scene *next; /* next in list */ |
17 |
|
} SCENE; /* loaded octree */ |
18 |
|
|
21 |
|
SCENE *obj; /* loaded object */ |
22 |
|
} INSTANCE; /* instance of octree */ |
23 |
|
|
24 |
< |
extern SCENE *getscene(); |
24 |
> |
#ifdef NOPROTO |
25 |
|
|
26 |
+ |
extern SCENE *getscene(); |
27 |
|
extern INSTANCE *getinstance(); |
28 |
+ |
extern void freescene(); |
29 |
+ |
extern void freeinstance(); |
30 |
+ |
|
31 |
+ |
#else |
32 |
+ |
|
33 |
+ |
extern SCENE *getscene(char *sname, int flags); |
34 |
+ |
extern INSTANCE *getinstance(OBJREC *o, int flags); |
35 |
+ |
extern void freescene(SCENE *sc); |
36 |
+ |
extern void freeinstance(OBJREC *o); |
37 |
+ |
|
38 |
+ |
#endif |