ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/instance.h
(Generate patch)

Comparing ray/src/common/instance.h (file contents):
Revision 1.1 by greg, Thu Feb 2 10:34:17 1989 UTC vs.
Revision 2.4 by greg, Tue Feb 25 02:47:21 2003 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1988 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  
13 #define  GET_BOUNDS     IO_BOUNDS       /* just load boundaries */
14 #define  GET_ALL        (IO_BOUNDS|IO_SCENE|IO_TREE)    /* everything */
15
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 <        struct {
25 <                double  sca;                    /* scaling */
26 <                double  xfm[4][4];              /* transform */
27 <        } f, b;                         /* forward and backward */
20 >        FULLXF  x;                      /* forward and backward transforms */
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines