UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
r_lightmap.h File Reference

lightmap definitions More...

#include "r_entity.h"

Go to the source code of this file.

Data Structures

struct  lightmaps_s
 

Macros

#define LIGHTMAP_DEFAULT_PAGE_SIZE   1024
 
#define LIGHTMAP_MAX_PAGE_SIZE   4096
 
#define LIGHTMAP_SAMPLE_SIZE   3 /* RGB */
 
#define DELUXEMAP_SAMPLE_SIZE   3 /* XYZ */
 

Typedefs

typedef struct lightmaps_s lightmaps_t
 

Functions

void R_CreateSurfaceLightmap (mBspSurface_t *surf)
 
void R_EndBuildingLightmaps (void)
 
void R_BeginBuildingLightmaps (void)
 
void R_Trace (const Line &trLine, float size, int contentmask)
 Moves the given mins/maxs volume through the world from start to end. More...
 

Variables

lightmaps_t r_lightmaps
 

Detailed Description

lightmap definitions

Definition in file r_lightmap.h.

Macro Definition Documentation

#define DELUXEMAP_SAMPLE_SIZE   3 /* XYZ */
#define LIGHTMAP_DEFAULT_PAGE_SIZE   1024

Definition at line 30 of file r_lightmap.h.

Referenced by R_CvarCheckMaxLightmap().

#define LIGHTMAP_MAX_PAGE_SIZE   4096

Definition at line 31 of file r_lightmap.h.

Referenced by R_CvarCheckMaxLightmap().

#define LIGHTMAP_SAMPLE_SIZE   3 /* RGB */

Typedef Documentation

typedef struct lightmaps_s lightmaps_t

Function Documentation

void R_Trace ( const Line trLine,
float  size,
int  contentmask 
)

Moves the given mins/maxs volume through the world from start to end.

Parameters
[in]trLineStart and end vectors of the trace
[in]sizeBounding box size used for tracing
[in]contentmaskSearched content the trace should watch for

Definition at line 317 of file r_lightmap.cpp.

References model_s::bsp, CM_CompleteBoxTrace(), CM_TransformedBoxTrace, AABB::expand(), mBspModel_s::firstnode, trace_s::fraction, i, m, trace_s::mapTile, mBspModel_s::maptile, mapTiles_s::mapTiles, rendererData_t::mapTiles, mod_bsp_submodel, rendererData_t::numEntities, entity_t::origin, R_GetEntity(), r_locals, r_numMapTiles, refdef, tr, rendererData_t::trace, TRACE_ALL_LEVELS, rendererData_t::traceEntity, rlocals_s::tracenum, and model_s::type.

Referenced by R_DrawFlareSurfaces(), R_UpdateLightList(), and R_UpdateShadowOrigin().

Variable Documentation

lightmaps_t r_lightmaps

Definition at line 32 of file r_lightmap.cpp.

Referenced by R_LoadBspVertexArrays().