UFO: Alien Invasion
r_model_brush.h File Reference

brush model loading More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mBspVertex_t
 
struct  mBspHeader_t
 
struct  mBspEdge_t
 
struct  mBspTexInfo_t
 
struct  mBspFlare_t
 
struct  mBspSurface_t
 
struct  mBspSurfaces_t
 surfaces are assigned to arrays based on their primary rendering type and then sorted by world texture index to reduce binds More...
 
struct  mBspNode_t
 
struct  mBspLeaf_t
 
struct  mBspModel_t
 brush model More...
 

Macros

#define MSURF_PLANEBACK   1
 
#define MSURF_LIGHTMAP   2
 
#define opaque_surfaces   sorted_surfaces[S_OPAQUE]
 
#define opaque_warp_surfaces   sorted_surfaces[S_OPAQUE_WARP]
 
#define alpha_test_surfaces   sorted_surfaces[S_ALPHA_TEST]
 
#define blend_surfaces   sorted_surfaces[S_BLEND]
 
#define blend_warp_surfaces   sorted_surfaces[S_BLEND_WARP]
 
#define material_surfaces   sorted_surfaces[S_MATERIAL]
 
#define flare_surfaces   sorted_surfaces[S_FLARE]
 
#define R_AddSurfaceToArray(array, surf)    (array)->surfaces[(array)->count++] = surf
 
#define CONTENTS_NODE   -1
 
#define CONTENTS_PATHFINDING_NODE   -2
 

Enumerations

enum  surfaceArrayType_t {
  S_OPAQUE , S_OPAQUE_WARP , S_ALPHA_TEST , S_BLEND ,
  S_BLEND_WARP , S_MATERIAL , S_FLARE , NUM_SURFACES_ARRAYS
}
 

Detailed Description

brush model loading

Definition in file r_model_brush.h.

Macro Definition Documentation

◆ alpha_test_surfaces

#define alpha_test_surfaces   sorted_surfaces[S_ALPHA_TEST]

Definition at line 157 of file r_model_brush.h.

◆ blend_surfaces

#define blend_surfaces   sorted_surfaces[S_BLEND]

Definition at line 158 of file r_model_brush.h.

◆ blend_warp_surfaces

#define blend_warp_surfaces   sorted_surfaces[S_BLEND_WARP]

Definition at line 159 of file r_model_brush.h.

◆ CONTENTS_NODE

#define CONTENTS_NODE   -1

Definition at line 166 of file r_model_brush.h.

◆ CONTENTS_PATHFINDING_NODE

#define CONTENTS_PATHFINDING_NODE   -2

Definition at line 167 of file r_model_brush.h.

◆ flare_surfaces

#define flare_surfaces   sorted_surfaces[S_FLARE]

Definition at line 161 of file r_model_brush.h.

◆ material_surfaces

#define material_surfaces   sorted_surfaces[S_MATERIAL]

Definition at line 160 of file r_model_brush.h.

◆ MSURF_LIGHTMAP

#define MSURF_LIGHTMAP   2

Definition at line 51 of file r_model_brush.h.

◆ MSURF_PLANEBACK

#define MSURF_PLANEBACK   1

Definition at line 50 of file r_model_brush.h.

◆ opaque_surfaces

#define opaque_surfaces   sorted_surfaces[S_OPAQUE]

Definition at line 155 of file r_model_brush.h.

◆ opaque_warp_surfaces

#define opaque_warp_surfaces   sorted_surfaces[S_OPAQUE_WARP]

Definition at line 156 of file r_model_brush.h.

◆ R_AddSurfaceToArray

#define R_AddSurfaceToArray (   array,
  surf 
)     (array)->surfaces[(array)->count++] = surf

Definition at line 163 of file r_model_brush.h.

Enumeration Type Documentation

◆ surfaceArrayType_t

Enumerator
S_OPAQUE 
S_OPAQUE_WARP 
S_ALPHA_TEST 
S_BLEND 
S_BLEND_WARP 
S_MATERIAL 
S_FLARE 
NUM_SURFACES_ARRAYS 

Definition at line 143 of file r_model_brush.h.