UFO: Alien Invasion
Loading...
Searching...
No Matches
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.

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

◆ LIGHTMAP_DEFAULT_PAGE_SIZE

#define LIGHTMAP_DEFAULT_PAGE_SIZE   1024

Definition at line 30 of file r_lightmap.h.

Referenced by R_CvarCheckMaxLightmap().

◆ LIGHTMAP_MAX_PAGE_SIZE

#define LIGHTMAP_MAX_PAGE_SIZE   4096

Definition at line 31 of file r_lightmap.h.

Referenced by R_CvarCheckMaxLightmap().

◆ LIGHTMAP_SAMPLE_SIZE

#define LIGHTMAP_SAMPLE_SIZE   3 /* RGB */

Function Documentation

◆ R_BeginBuildingLightmaps()

◆ R_CreateSurfaceLightmap()

◆ R_EndBuildingLightmaps()

void R_EndBuildingLightmaps ( void )

◆ 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(), i, m, mod_bsp_submodel, entity_t::model, entity_t::origin, R_GetEntity(), r_locals, r_numMapTiles, refdef, tr, and TRACE_ALL_LEVELS.

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

Variable Documentation

◆ r_lightmaps