--- ray/src/common/instance.h 1990/12/15 15:01:34 1.3 +++ ray/src/common/instance.h 2003/02/25 02:47:21 2.4 @@ -1,19 +1,18 @@ -/* Copyright (c) 1990 Regents of the University of California */ - -/* SCCSid "$SunId$ LBL" */ - +/* RCSid $Id: instance.h,v 2.4 2003/02/25 02:47:21 greg Exp $ */ /* * instance.h - header file for routines using octree objects. * - * 11/10/88 + * Include after object.h and octree.h */ -#include "octree.h" +#include "copyright.h" typedef struct scene { char *name; /* octree name */ + int nref; /* number of references */ int ldflags; /* what was loaded */ CUBE scube; /* scene cube */ + OBJECT firstobj, nobjs; /* first object and count */ struct scene *next; /* next in list */ } SCENE; /* loaded octree */ @@ -22,6 +21,18 @@ typedef struct { SCENE *obj; /* loaded object */ } INSTANCE; /* instance of octree */ -extern SCENE *getscene(); +#ifdef NOPROTO +extern SCENE *getscene(); extern INSTANCE *getinstance(); +extern void freescene(); +extern void freeinstance(); + +#else + +extern SCENE *getscene(char *sname, int flags); +extern INSTANCE *getinstance(OBJREC *o, int flags); +extern void freescene(SCENE *sc); +extern void freeinstance(OBJREC *o); + +#endif