UFO: Alien Invasion
r_lightmap.h File Reference

lightmap definitions More...

#include "r_entity.h"
Include dependency graph for r_lightmap.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  lightmaps_t
 

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 */
 

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

◆ DELUXEMAP_SAMPLE_SIZE

#define DELUXEMAP_SAMPLE_SIZE   3 /* XYZ */

Definition at line 34 of file r_lightmap.h.

◆ LIGHTMAP_DEFAULT_PAGE_SIZE

#define LIGHTMAP_DEFAULT_PAGE_SIZE   1024

Definition at line 30 of file r_lightmap.h.

◆ LIGHTMAP_MAX_PAGE_SIZE

#define LIGHTMAP_MAX_PAGE_SIZE   4096

Definition at line 31 of file r_lightmap.h.

◆ LIGHTMAP_SAMPLE_SIZE

#define LIGHTMAP_SAMPLE_SIZE   3 /* RGB */

Definition at line 33 of file r_lightmap.h.

Function Documentation

◆ R_BeginBuildingLightmaps()

◆ R_CreateSurfaceLightmap()

◆ R_EndBuildingLightmaps()

◆ R_Trace()

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 entity_t::angles, CM_CompleteBoxTrace(), CM_TransformedBoxTrace, AABB::expand(), trace_t::fraction, i, m, trace_t::mapTile, rendererData_t::mapTiles, mapTiles_t::mapTiles, mod_bsp_submodel, entity_t::model, rendererData_t::numEntities, entity_t::origin, R_GetEntity(), r_locals, r_numMapTiles, refdef, tr, rendererData_t::trace, TRACE_ALL_LEVELS, rendererData_t::traceEntity, and rlocals_t::tracenum.

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

Variable Documentation

◆ r_lightmaps