|
UFO: Alien Invasion
|
lightmap definitions More...
#include "r_entity.h"

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 |
lightmap definitions
Definition in file r_lightmap.h.
| #define DELUXEMAP_SAMPLE_SIZE 3 /* XYZ */ |
Definition at line 34 of file r_lightmap.h.
Referenced by R_BeginBuildingLightmaps(), R_BuildDefaultLightmap(), R_BuildLightmap(), R_CreateSurfaceLightmap(), and R_UploadLightmapPage().
| #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 */ |
Definition at line 33 of file r_lightmap.h.
Referenced by R_BeginBuildingLightmaps(), R_BuildDefaultLightmap(), R_BuildLightmap(), R_CreateSurfaceLightmap(), and R_UploadLightmapPage().
Definition at line 273 of file r_lightmap.cpp.
References DELUXEMAP_SAMPLE_SIZE, LIGHTMAP_SAMPLE_SIZE, Mem_PoolAllocTypeN, R_DisposeLightmaps(), r_lightmaps, r_maxlightmap, and vid_lightPool.
Referenced by R_ModBeginLoading(), and R_ReinitOpenglContext().
| void R_CreateSurfaceLightmap | ( | mBspSurface_t * | surf | ) |
Definition at line 223 of file r_lightmap.cpp.
References Com_Error(), DELUXEMAP_SAMPLE_SIZE, mBspSurface_t::deluxemap_texnum, ERR_DROP, mBspSurface_t::flags, mBspSurface_t::light_s, mBspSurface_t::light_t, LIGHTMAP_SAMPLE_SIZE, mBspSurface_t::lightmap_scale, mBspSurface_t::lightmap_texnum, MSURF_LIGHTMAP, R_AllocLightmapBlock(), R_BuildDefaultLightmap(), R_BuildLightmap(), r_lightmaps, R_UploadLightmapPage(), mBspSurface_t::samples, and mBspSurface_t::stextents.
Referenced by R_ModLoadSurfaces(), and R_ReinitOpenglContext().
Definition at line 298 of file r_lightmap.cpp.
References Mem_Free, r_lightmaps, and R_UploadLightmapPage().
Referenced by R_ModEndLoading(), and R_ReinitOpenglContext().
Moves the given mins/maxs volume through the world from start to end.
| [in] | trLine | Start and end vectors of the trace |
| [in] | size | Bounding box size used for tracing |
| [in] | contentmask | Searched 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().
|
extern |
Definition at line 32 of file r_lightmap.cpp.
Referenced by R_AllocLightmapBlock(), R_BeginBuildingLightmaps(), R_CreateSurfaceLightmap(), R_DisposeLightmaps(), R_EndBuildingLightmaps(), R_LoadBspVertexArrays(), and R_UploadLightmapPage().