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 |
+ |
#ifndef _RAD_INSTANCE_H_ |
8 |
+ |
#define _RAD_INSTANCE_H_ |
9 |
+ |
#ifdef __cplusplus |
10 |
+ |
extern "C" { |
11 |
+ |
#endif |
12 |
|
|
11 |
– |
#include "octree.h" |
12 |
– |
|
13 |
|
typedef struct scene { |
14 |
|
char *name; /* octree name */ |
15 |
+ |
int nref; /* number of references */ |
16 |
|
int ldflags; /* what was loaded */ |
17 |
|
CUBE scube; /* scene cube */ |
18 |
|
OBJECT firstobj, nobjs; /* first object and count */ |
24 |
|
SCENE *obj; /* loaded object */ |
25 |
|
} INSTANCE; /* instance of octree */ |
26 |
|
|
26 |
– |
extern SCENE *getscene(); |
27 |
|
|
28 |
< |
extern INSTANCE *getinstance(); |
28 |
> |
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 |
> |
|
34 |
> |
#ifdef __cplusplus |
35 |
> |
} |
36 |
> |
#endif |
37 |
> |
#endif /* _RAD_INSTANCE_H_ */ |
38 |
> |
|