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

# User Rev Content
1 greg 2.4 /* RCSid $Id$ */
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    
8 greg 2.4 #include "copyright.h"
9 greg 1.1
10     typedef struct scene {
11     char *name; /* octree name */
12 greg 2.3 int nref; /* number of references */
13 greg 1.1 int ldflags; /* what was loaded */
14     CUBE scube; /* scene cube */
15 greg 2.2 OBJECT firstobj, nobjs; /* first object and count */
16 greg 1.1 struct scene *next; /* next in list */
17     } SCENE; /* loaded octree */
18    
19     typedef struct {
20 greg 1.3 FULLXF x; /* forward and backward transforms */
21 greg 1.1 SCENE *obj; /* loaded object */
22     } INSTANCE; /* instance of octree */
23    
24 greg 2.3 #ifdef NOPROTO
25    
26 greg 1.1 extern SCENE *getscene();
27 greg 2.3 extern INSTANCE *getinstance();
28     extern void freescene();
29     extern void freeinstance();
30    
31     #else
32 greg 1.1
33 greg 2.3 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