1 |
greg |
1.1 |
/* Copyright (c) 1988 Regents of the University of California */ |
2 |
|
|
|
3 |
|
|
/* SCCSid "$SunId$ LBL" */ |
4 |
|
|
|
5 |
|
|
/* |
6 |
|
|
* instance.h - header file for routines using octree objects. |
7 |
|
|
* |
8 |
|
|
* 11/10/88 |
9 |
|
|
*/ |
10 |
|
|
|
11 |
|
|
#include "octree.h" |
12 |
|
|
|
13 |
|
|
#define GET_BOUNDS IO_BOUNDS /* just load boundaries */ |
14 |
|
|
#define GET_ALL (IO_BOUNDS|IO_SCENE|IO_TREE) /* everything */ |
15 |
|
|
|
16 |
|
|
typedef struct scene { |
17 |
|
|
char *name; /* octree name */ |
18 |
|
|
int ldflags; /* what was loaded */ |
19 |
|
|
CUBE scube; /* scene cube */ |
20 |
|
|
struct scene *next; /* next in list */ |
21 |
|
|
} SCENE; /* loaded octree */ |
22 |
|
|
|
23 |
|
|
typedef struct { |
24 |
|
|
struct { |
25 |
|
|
double sca; /* scaling */ |
26 |
|
|
double xfm[4][4]; /* transform */ |
27 |
|
|
} f, b; /* forward and backward */ |
28 |
|
|
SCENE *obj; /* loaded object */ |
29 |
|
|
} INSTANCE; /* instance of octree */ |
30 |
|
|
|
31 |
|
|
extern SCENE *getscene(); |
32 |
|
|
|
33 |
|
|
extern INSTANCE *getinstance(); |