UFO: Alien Invasion
|
#include <r_model_brush.h>
Data Fields | |
cBspPlane_t * | plane |
int | flags |
int | tile |
int | frame |
int | firstedge |
int | numedges |
short | stmins [2] |
short | stmaxs [2] |
vec2_t | stcenter |
vec2_t | stextents |
AABB | mbsBox |
vec3_t | maxs |
vec3_t | center |
vec4_t | lightColor |
vec3_t | normal |
int | light_s |
int | light_t |
int | lightmap_scale |
unsigned int | index |
int | firstTriangle |
unsigned int | numTriangles |
int | tracenum |
mBspTexInfo_t * | texinfo |
mBspFlare_t * | flare |
int | lightmap_texnum |
int | deluxemap_texnum |
byte * | samples |
byte * | lightmap |
int | lightframe |
int | lights |
bool | isOriginBrushModel |
Definition at line 83 of file r_model_brush.h.
vec3_t mBspSurface_s::center |
Definition at line 102 of file r_model_brush.h.
Referenced by R_CreateSurfaceFlare(), and R_SetSurfaceExtents().
int mBspSurface_s::deluxemap_texnum |
Definition at line 120 of file r_model_brush.h.
Referenced by R_CreateSurfaceLightmap(), R_DrawSurfaces(), and R_SetSurfaceBumpMappingParameters().
int mBspSurface_s::firstedge |
look up in model->surfedges[], negative numbers are backwards edges
Definition at line 91 of file r_model_brush.h.
Referenced by R_LoadBspVertexArrays(), R_ModLoadSurfaces(), and R_SetSurfaceExtents().
int mBspSurface_s::firstTriangle |
Definition at line 110 of file r_model_brush.h.
Referenced by R_DrawSurfaces(), R_GenerateGrass(), R_GenerateTriangleSoup_(), and R_LoadBspVertexArrays().
int mBspSurface_s::flags |
Definition at line 85 of file r_model_brush.h.
Referenced by R_CreateSurfaceLightmap(), R_LoadBspVertexArrays(), R_ModLoadSurfaces(), R_SetSurfaceBumpMappingParameters(), R_SetSurfaceState(), and R_StageLighting().
mBspFlare_t* mBspSurface_s::flare |
Definition at line 117 of file r_model_brush.h.
Referenced by R_CreateSurfaceFlare(), and R_DrawFlareSurfaces().
int mBspSurface_s::frame |
used to decide whether this surface should be drawn
Definition at line 88 of file r_model_brush.h.
Referenced by R_AddBspRRef(), R_DrawBspNormals(), R_DrawFlareSurfaces(), R_DrawMaterialSurfaces(), R_DrawSurfaces(), R_GenerateGrass(), R_RecursiveVisibleWorldNode(), and R_RecursiveWorldNode().
unsigned int mBspSurface_s::index |
of the first vertex in the vertex array
Definition at line 109 of file r_model_brush.h.
Referenced by R_DrawBspNormals(), R_DrawSurfaceStage(), R_GenerateTriangleSoup_(), and R_LoadBspVertexArrays().
bool mBspSurface_s::isOriginBrushModel |
func_door, func_rotating - if this is true the vertices for this surface won't get shifted in case of an rma - these surfaces are translated by their entities origin vector (which was given by the CONTENTS_ORIGIN flag in ufo2map and removed from the bsp later)
Definition at line 128 of file r_model_brush.h.
Referenced by R_LoadBspVertexArrays(), and R_SetupSubmodels().
int mBspSurface_s::light_s |
Definition at line 106 of file r_model_brush.h.
Referenced by R_CreateSurfaceLightmap(), and R_LoadBspVertexArrays().
int mBspSurface_s::light_t |
gl lightmap coordinates
Definition at line 106 of file r_model_brush.h.
Referenced by R_CreateSurfaceLightmap(), and R_LoadBspVertexArrays().
vec4_t mBspSurface_s::lightColor |
average lightmap color for the surface
Definition at line 103 of file r_model_brush.h.
Referenced by R_BuildDefaultLightmap(), R_BuildLightmap(), R_CreateSurfaceFlare(), and R_SetSurfaceStageState().
int mBspSurface_s::lightframe |
dynamic lighting frame
Definition at line 125 of file r_model_brush.h.
byte* mBspSurface_s::lightmap |
finalized lightmap samples, cached for lookups
Definition at line 123 of file r_model_brush.h.
Referenced by R_BuildDefaultLightmap(), and R_BuildLightmap().
int mBspSurface_s::lightmap_scale |
Definition at line 107 of file r_model_brush.h.
Referenced by R_BuildDefaultLightmap(), R_BuildLightmap(), R_CreateSurfaceLightmap(), R_LoadBspVertexArrays(), R_ModLoadSurfaces(), and R_SetSurfaceExtents().
int mBspSurface_s::lightmap_texnum |
Definition at line 119 of file r_model_brush.h.
Referenced by R_CreateSurfaceLightmap(), R_DrawSurfaces(), R_SetSurfaceState(), and R_StageLighting().
int mBspSurface_s::lights |
bitmask of dynamic light sources
Definition at line 126 of file r_model_brush.h.
vec3_t mBspSurface_s::maxs |
Definition at line 100 of file r_model_brush.h.
AABB mBspSurface_s::mbsBox |
Definition at line 99 of file r_model_brush.h.
Referenced by R_CreateSurfaceFlare(), and R_SetSurfaceExtents().
vec3_t mBspSurface_s::normal |
Definition at line 104 of file r_model_brush.h.
Referenced by R_CreateSurfaceFlare(), R_DrawFlareSurfaces(), R_LoadBspVertexArrays(), and R_ModLoadSurfaces().
int mBspSurface_s::numedges |
Definition at line 92 of file r_model_brush.h.
Referenced by R_DrawBspNormals(), R_DrawSurfaceStage(), R_GenerateTriangleSoup_(), R_LoadBspVertexArrays(), R_ModLoadSurfaces(), R_ReinitOpenglContext(), and R_SetSurfaceExtents().
unsigned int mBspSurface_s::numTriangles |
-1 means no triangles are generated for this surface yet
Definition at line 111 of file r_model_brush.h.
Referenced by R_DrawSurfaces(), R_GenerateGrass(), and R_GenerateTriangleSoup_().
cBspPlane_t* mBspSurface_s::plane |
Definition at line 84 of file r_model_brush.h.
Referenced by R_GenerateGrass(), and R_ModLoadSurfaces().
byte* mBspSurface_s::samples |
lightmap samples - only used at loading time
Definition at line 122 of file r_model_brush.h.
Referenced by R_BuildLightmap(), R_CreateSurfaceLightmap(), and R_ModLoadSurfaces().
vec2_t mBspSurface_s::stcenter |
Definition at line 96 of file r_model_brush.h.
Referenced by R_SetSurfaceExtents(), and R_StageTextureMatrix().
vec2_t mBspSurface_s::stextents |
Definition at line 97 of file r_model_brush.h.
Referenced by R_BuildDefaultLightmap(), R_BuildLightmap(), R_CreateSurfaceLightmap(), and R_SetSurfaceExtents().
short mBspSurface_s::stmaxs[2] |
st max coordinates
Definition at line 95 of file r_model_brush.h.
Referenced by R_SetSurfaceExtents().
short mBspSurface_s::stmins[2] |
st min coordinates
Definition at line 94 of file r_model_brush.h.
Referenced by R_LoadBspVertexArrays(), and R_SetSurfaceExtents().
mBspTexInfo_t* mBspSurface_s::texinfo |
Definition at line 115 of file r_model_brush.h.
Referenced by R_BuildLightmap(), R_CreateSurfaceFlare(), R_DrawBspNormals(), R_DrawMaterialSurfaces(), R_DrawSurfaces(), R_GenerateGrass(), R_LoadBspVertexArrays(), R_LoadSurfacesArrays_(), R_ModLoadSurfaces(), R_SetSurfaceBumpMappingParameters(), R_SetSurfaceExtents(), R_SetSurfaceState(), R_SetupSubmodels(), R_SortSurfacesArrays(), R_SortSurfacesArrays_(), and R_StageTextureMatrix().
int mBspSurface_s::tile |
index in r_mapTiles (loaded bsp map index) this surface belongs, to
Definition at line 86 of file r_model_brush.h.
Referenced by R_DrawSurfaceStage(), and R_ModLoadSurfaces().
int mBspSurface_s::tracenum |
Definition at line 113 of file r_model_brush.h.