36 typedef struct mBspVertex_s {
41 typedef struct mBspHeader_s {
50 #define MSURF_PLANEBACK 1 51 #define MSURF_LIGHTMAP 2 53 typedef struct mBspEdge_s {
65 typedef struct mBspTexInfo_s {
74 typedef struct mBspFlare_s {
83 typedef struct mBspSurface_s {
138 typedef 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 171 typedef struct mBspNode_s {
182 struct mBspNode_s* children[2];
188 typedef struct mBspLeaf_s {
199 typedef struct mBspModel_s {
unsigned int lmtexcoord_buffer
struct mBspNode_s * parent
unsigned int tangent_buffer
unsigned short numsurfaces
mBspSurface_t ** surfaces
unsigned int normal_buffer
unsigned short firstsurface
unsigned int index_buffer
unsigned int texcoord_buffer
unsigned int numTriangles
surfaces are assigned to arrays based on their primary rendering type and then sorted by world textur...
QGL_EXTERN int GLboolean GLfloat * v
unsigned int vertex_buffer
glElementIndex_t * indexes