20 lines
308 B
Text
20 lines
308 B
Text
|
#ifndef __BSP_H
|
||
|
#define __BSP_H
|
||
|
|
||
|
#include "face.hpp"
|
||
|
#include "plane.hpp"
|
||
|
|
||
|
typedef struct _BSP
|
||
|
{
|
||
|
struct _BSP* sides[2];
|
||
|
Face* faces;
|
||
|
Plane plane;
|
||
|
Vector lo;
|
||
|
Vector hi;
|
||
|
} BSP;
|
||
|
|
||
|
BSP* BSPRead(FILE*);
|
||
|
Face* BSPFaceIntersect(BSP*, Vector, Vector);
|
||
|
|
||
|
#endif
|