| 2 |
|
/* |
| 3 |
|
* octree.h - header file for routines using octrees. |
| 4 |
|
*/ |
| 5 |
+ |
#ifndef _RAD_OCTREE_H_ |
| 6 |
+ |
#define _RAD_OCTREE_H_ |
| 7 |
+ |
#ifdef __cplusplus |
| 8 |
+ |
extern "C" { |
| 9 |
+ |
#endif |
| 10 |
|
|
| 11 |
|
#include "copyright.h" |
| 12 |
|
|
| 84 |
|
#define O_HIT 1 /* intersection */ |
| 85 |
|
#define O_IN 2 /* cube contained entirely */ |
| 86 |
|
|
| 82 |
– |
#ifdef NOPROTO |
| 87 |
|
|
| 84 |
– |
extern OCTREE octalloc(); |
| 85 |
– |
extern void octfree(); |
| 86 |
– |
extern void octdone(); |
| 87 |
– |
extern OCTREE combine(); |
| 88 |
– |
extern void culocate(); |
| 89 |
– |
extern void cucopy(); |
| 90 |
– |
extern int incube(); |
| 91 |
– |
extern int readoct(); |
| 92 |
– |
extern void readscene(); |
| 93 |
– |
extern void writescene(); |
| 94 |
– |
|
| 95 |
– |
#else |
| 96 |
– |
|
| 88 |
|
extern OCTREE octalloc(void); |
| 89 |
|
extern void octfree(OCTREE ot); |
| 90 |
|
extern void octdone(void); |
| 98 |
|
extern void readscene(FILE *fp, int objsiz); |
| 99 |
|
extern void writescene(int firstobj, int nobjs, FILE *fp); |
| 100 |
|
|
| 101 |
+ |
|
| 102 |
+ |
#ifdef __cplusplus |
| 103 |
+ |
} |
| 104 |
|
#endif |
| 105 |
+ |
#endif /* _RAD_OCTREE_H_ */ |
| 106 |
+ |
|