36typedef struct mBspVertex_s {
41typedef struct mBspHeader_s {
50#define MSURF_PLANEBACK 1
51#define MSURF_LIGHTMAP 2
53typedef struct mBspEdge_s {
65typedef struct mBspTexInfo_s {
74typedef struct mBspFlare_s {
83typedef struct mBspSurface_s {
138typedef struct mBspSurfaces_s {
155#define opaque_surfaces sorted_surfaces[S_OPAQUE]
156#define opaque_warp_surfaces sorted_surfaces[S_OPAQUE_WARP]
157#define alpha_test_surfaces sorted_surfaces[S_ALPHA_TEST]
158#define blend_surfaces sorted_surfaces[S_BLEND]
159#define blend_warp_surfaces sorted_surfaces[S_BLEND_WARP]
160#define material_surfaces sorted_surfaces[S_MATERIAL]
161#define flare_surfaces sorted_surfaces[S_FLARE]
163#define R_AddSurfaceToArray(array, surf)\
164 (array)->surfaces[(array)->count++] = surf
166#define CONTENTS_NODE -1
167#define CONTENTS_PATHFINDING_NODE -2
171typedef struct mBspNode_s {
188typedef struct mBspLeaf_s {
199typedef struct mBspModel_s {
glElementIndex_t * indexes
unsigned int tangent_buffer
unsigned int normal_buffer
mBspSurfaces_t * sorted_surfaces[NUM_SURFACES_ARRAYS]
unsigned int index_buffer
unsigned int vertex_buffer
unsigned int texcoord_buffer
unsigned int lmtexcoord_buffer
unsigned short firstsurface
struct mBspNode_s * parent
struct mBspNode_s * children[2]
unsigned short numsurfaces
unsigned int numTriangles
surfaces are assigned to arrays based on their primary rendering type and then sorted by world textur...
mBspSurface_t ** surfaces