--- ray/src/common/instance.h 1992/08/06 08:18:56 2.2 +++ ray/src/common/instance.h 2003/06/06 16:38:47 2.5 @@ -1,17 +1,20 @@ -/* Copyright (c) 1990 Regents of the University of California */ - -/* SCCSid "$SunId$ LBL" */ - +/* RCSid $Id: instance.h,v 2.5 2003/06/06 16:38:47 schorsch Exp $ */ /* * instance.h - header file for routines using octree objects. * - * 11/10/88 + * Include after object.h and octree.h */ +#ifndef _RAD_INSTANCE_H_ +#define _RAD_INSTANCE_H_ +#ifdef __cplusplus +extern "C" { +#endif -#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 */ @@ -23,6 +26,15 @@ typedef struct { SCENE *obj; /* loaded object */ } INSTANCE; /* instance of octree */ -extern SCENE *getscene(); -extern INSTANCE *getinstance(); +extern SCENE *getscene(char *sname, int flags); +extern INSTANCE *getinstance(OBJREC *o, int flags); +extern void freescene(SCENE *sc); +extern void freeinstance(OBJREC *o); + + +#ifdef __cplusplus +} +#endif +#endif /* _RAD_INSTANCE_H_ */ +