UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
mBspSurface_s Struct Reference

#include <r_model_brush.h>

Data Fields

cBspPlane_tplane
 
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_ttexinfo
 
mBspFlare_tflare
 
int lightmap_texnum
 
int deluxemap_texnum
 
bytesamples
 
bytelightmap
 
int lightframe
 
int lights
 
bool isOriginBrushModel
 

Detailed Description

Definition at line 83 of file r_model_brush.h.

Field Documentation

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
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
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
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_texnum
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
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
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().

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.


The documentation for this struct was generated from the following file: