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_s
struct  mBspHeader_s
struct  mBspEdge_s
struct  mBspTexInfo_s
struct  mBspFlare_s
struct  mBspSurface_s
struct  mBspSurfaces_s
 surfaces are assigned to arrays based on their primary rendering type and then sorted by world texnum to reduce binds More...
struct  mBspNode_s
struct  mBspLeaf_s
struct  mBspModel_s
 brush model More...

Defines

#define MSURF_PLANEBACK   1
#define MSURF_LIGHTMAP   2
#define opaque_surfaces   sorted_surfaces[0]
#define opaque_warp_surfaces   sorted_surfaces[1]
#define alpha_test_surfaces   sorted_surfaces[2]
#define blend_surfaces   sorted_surfaces[3]
#define blend_warp_surfaces   sorted_surfaces[4]
#define material_surfaces   sorted_surfaces[5]
#define flare_surfaces   sorted_surfaces[6]
#define NUM_SURFACES_ARRAYS   7
#define R_SurfaceToSurfaces(surfs, surf)   (surfs)->surfaces[(surfs)->count++] = surf
#define CONTENTS_NODE   -1
#define CONTENTS_PATHFINDING_NODE   -2

Typedefs

typedef struct mBspVertex_s mBspVertex_t
typedef struct mBspHeader_s mBspHeader_t
typedef struct mBspEdge_s mBspEdge_t
typedef struct mBspTexInfo_s mBspTexInfo_t
typedef struct mBspFlare_s mBspFlare_t
typedef struct mBspSurface_s mBspSurface_t
typedef struct mBspSurfaces_s mBspSurfaces_t
 surfaces are assigned to arrays based on their primary rendering type and then sorted by world texnum to reduce binds
typedef struct mBspNode_s mBspNode_t
typedef struct mBspLeaf_s mBspLeaf_t
typedef struct mBspModel_s mBspModel_t
 brush model

Detailed Description

brush model loading

Definition in file r_model_brush.h.


Define Documentation

#define alpha_test_surfaces   sorted_surfaces[2]

Definition at line 144 of file r_model_brush.h.

#define blend_surfaces   sorted_surfaces[3]

Definition at line 145 of file r_model_brush.h.

#define blend_warp_surfaces   sorted_surfaces[4]

Definition at line 146 of file r_model_brush.h.

#define CONTENTS_NODE   -1

Definition at line 155 of file r_model_brush.h.

Referenced by R_ModLoadNodes(), R_RecursiveWorldNode(), and R_SetModel().

#define CONTENTS_PATHFINDING_NODE   -2

Definition at line 156 of file r_model_brush.h.

Referenced by R_ModLoadNodes(), R_RecurseWorld(), and R_RecursiveSetModel().

#define flare_surfaces   sorted_surfaces[6]

Definition at line 148 of file r_model_brush.h.

#define material_surfaces   sorted_surfaces[5]

Definition at line 147 of file r_model_brush.h.

#define MSURF_LIGHTMAP   2
#define MSURF_PLANEBACK   1

Definition at line 51 of file r_model_brush.h.

Referenced by R_DrawBspModelSurfaces(), R_ModLoadSurfaces(), and R_RecursiveWorldNode().

#define NUM_SURFACES_ARRAYS   7

Definition at line 150 of file r_model_brush.h.

Referenced by R_LoadSurfacesArrays_(), and R_SortSurfacesArrays().

#define opaque_surfaces   sorted_surfaces[0]

Definition at line 142 of file r_model_brush.h.

#define opaque_warp_surfaces   sorted_surfaces[1]

Definition at line 143 of file r_model_brush.h.

#define R_SurfaceToSurfaces ( surfs,
surf   )     (surfs)->surfaces[(surfs)->count++] = surf

Definition at line 152 of file r_model_brush.h.

Referenced by R_LoadSurfacesArrays_(), and R_SortSurfacesArrays_().


Typedef Documentation

typedef struct mBspEdge_s mBspEdge_t
typedef struct mBspFlare_s mBspFlare_t
typedef struct mBspHeader_s mBspHeader_t
typedef struct mBspLeaf_s mBspLeaf_t
typedef struct mBspModel_s mBspModel_t

brush model

typedef struct mBspNode_s mBspNode_t
Note:
The mBspLeaf_t type shares the same first variables - don't change the order
typedef struct mBspSurface_s mBspSurface_t

surfaces are assigned to arrays based on their primary rendering type and then sorted by world texnum to reduce binds

typedef struct mBspTexInfo_s mBspTexInfo_t

Apply texture with a planar texture mapping

Note:
Texture coordinates for a vector v are found with this computation:
 float u = v[0] * uv[0] + v[1] * uv[1] + v[2] * uv[2] + u_offset
 float v = v[0] * vv[0] + v[1] * vv[1] + v[2] * vv[2] + v_offset
typedef struct mBspVertex_s mBspVertex_t

in memory representation


Generated by  doxygen 1.6.2