ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/instance.h
Revision: 2.4
Committed: Tue Feb 25 02:47:21 2003 UTC (21 years, 2 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad3R5
Changes since 2.3: +2 -57 lines
Log Message:
Replaced inline copyright notice with #include "copyright.h"

File Contents

# Content
1 /* RCSid $Id$ */
2 /*
3 * instance.h - header file for routines using octree objects.
4 *
5 * Include after object.h and octree.h
6 */
7
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
19 typedef struct {
20 FULLXF x; /* forward and backward transforms */
21 SCENE *obj; /* loaded object */
22 } INSTANCE; /* instance of octree */
23
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