UFO: Alien Invasion
Loading...
Searching...
No Matches
mBspSurface_t Struct Reference

#include <r_model_brush.h>

Collaboration diagram for mBspSurface_t:
Collaboration graph

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

◆ center

vec3_t mBspSurface_t::center

Definition at line 102 of file r_model_brush.h.

Referenced by R_CreateSurfaceFlare(), and R_SetSurfaceExtents().

◆ deluxemap_texnum

int mBspSurface_t::deluxemap_texnum

◆ firstedge

int mBspSurface_t::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().

◆ firstTriangle

int mBspSurface_t::firstTriangle

◆ flags

◆ flare

mBspFlare_t* mBspSurface_t::flare

Definition at line 117 of file r_model_brush.h.

Referenced by R_CreateSurfaceFlare(), and R_DrawFlareSurfaces().

◆ frame

int mBspSurface_t::frame

◆ index

unsigned int mBspSurface_t::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().

◆ isOriginBrushModel

bool mBspSurface_t::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().

◆ light_s

int mBspSurface_t::light_s

Definition at line 106 of file r_model_brush.h.

Referenced by R_CreateSurfaceLightmap(), and R_LoadBspVertexArrays().

◆ light_t

int mBspSurface_t::light_t

gl lightmap coordinates

Definition at line 106 of file r_model_brush.h.

Referenced by R_CreateSurfaceLightmap(), and R_LoadBspVertexArrays().

◆ lightColor

vec4_t mBspSurface_t::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().

◆ lightframe

int mBspSurface_t::lightframe

dynamic lighting frame

Definition at line 125 of file r_model_brush.h.

◆ lightmap

byte* mBspSurface_t::lightmap

finalized lightmap samples, cached for lookups

Definition at line 123 of file r_model_brush.h.

Referenced by R_BuildDefaultLightmap(), and R_BuildLightmap().

◆ lightmap_scale

◆ lightmap_texnum

int mBspSurface_t::lightmap_texnum

◆ lights

int mBspSurface_t::lights

bitmask of dynamic light sources

Definition at line 126 of file r_model_brush.h.

◆ maxs

vec3_t mBspSurface_t::maxs

Definition at line 100 of file r_model_brush.h.

◆ mbsBox

AABB mBspSurface_t::mbsBox

Definition at line 99 of file r_model_brush.h.

Referenced by R_CreateSurfaceFlare(), and R_SetSurfaceExtents().

◆ normal

vec3_t mBspSurface_t::normal

◆ numedges

◆ numTriangles

unsigned int mBspSurface_t::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_().

◆ plane

cBspPlane_t* mBspSurface_t::plane

Definition at line 84 of file r_model_brush.h.

Referenced by R_GenerateGrass(), and R_ModLoadSurfaces().

◆ samples

byte* mBspSurface_t::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().

◆ stcenter

vec2_t mBspSurface_t::stcenter

Definition at line 96 of file r_model_brush.h.

Referenced by R_SetSurfaceExtents(), and R_StageTextureMatrix().

◆ stextents

vec2_t mBspSurface_t::stextents

◆ stmaxs

short mBspSurface_t::stmaxs[2]

st max coordinates

Definition at line 95 of file r_model_brush.h.

Referenced by R_SetSurfaceExtents().

◆ stmins

short mBspSurface_t::stmins[2]

st min coordinates

Definition at line 94 of file r_model_brush.h.

Referenced by R_LoadBspVertexArrays(), and R_SetSurfaceExtents().

◆ texinfo

◆ tile

int mBspSurface_t::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().

◆ tracenum

int mBspSurface_t::tracenum

Definition at line 113 of file r_model_brush.h.


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