room101/BSP.HPP

20 lines
308 B
Text
Raw Permalink Normal View History

#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