ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/instance.h
Revision: 2.5
Committed: Fri Jun 6 16:38:47 2003 UTC (20 years, 10 months ago) by schorsch
Content type: text/plain
Branch: MAIN
Changes since 2.4: +11 -9 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 schorsch 2.5 /* RCSid $Id: instance.h,v 2.4 2003/02/25 02:47:21 greg 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 greg 2.4 #include "copyright.h"
14 greg 1.1
15     typedef struct scene {
16     char *name; /* octree name */
17 greg 2.3 int nref; /* number of references */
18 greg 1.1 int ldflags; /* what was loaded */
19     CUBE scube; /* scene cube */
20 greg 2.2 OBJECT firstobj, nobjs; /* first object and count */
21 greg 1.1 struct scene *next; /* next in list */
22     } SCENE; /* loaded octree */
23    
24     typedef struct {
25 greg 1.3 FULLXF x; /* forward and backward transforms */
26 greg 1.1 SCENE *obj; /* loaded object */
27     } INSTANCE; /* instance of octree */
28    
29    
30 greg 2.3 extern SCENE *getscene(char *sname, int flags);
31     extern INSTANCE *getinstance(OBJREC *o, int flags);
32     extern void freescene(SCENE *sc);
33     extern void freeinstance(OBJREC *o);
34    
35 schorsch 2.5
36     #ifdef __cplusplus
37     }
38 greg 2.3 #endif
39 schorsch 2.5 #endif /* _RAD_INSTANCE_H_ */
40