UFO: Alien Invasion
|
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 |
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().
typedef struct lightmaps_s lightmaps_t |
Definition at line 273 of file r_lightmap.cpp.
References lightmaps_s::allocated, lightmaps_s::deluxemap_count, DELUXEMAP_SAMPLE_SIZE, lightmaps_s::direction_buffer, lightmaps_s::incomplete_atlas, cvar_s::integer, lightmaps_s::lightmap_count, LIGHTMAP_SAMPLE_SIZE, Mem_PoolAllocTypeN, R_DisposeLightmaps(), r_maxlightmap, lightmaps_s::sample_buffer, lightmaps_s::size, 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(), lightmaps_s::deluxemap_count, DELUXEMAP_SAMPLE_SIZE, mBspSurface_s::deluxemap_texnum, lightmaps_s::deluxemap_texnums, lightmaps_s::direction_buffer, ERR_DROP, mBspSurface_s::flags, mBspSurface_s::light_s, mBspSurface_s::light_t, lightmaps_s::lightmap_count, LIGHTMAP_SAMPLE_SIZE, mBspSurface_s::lightmap_scale, mBspSurface_s::lightmap_texnum, lightmaps_s::lightmap_texnums, MSURF_LIGHTMAP, R_AllocLightmapBlock(), R_BuildDefaultLightmap(), R_BuildLightmap(), R_UploadLightmapPage(), lightmaps_s::sample_buffer, mBspSurface_s::samples, lightmaps_s::size, and mBspSurface_s::stextents.
Referenced by R_ModLoadSurfaces(), and R_ReinitOpenglContext().
Definition at line 298 of file r_lightmap.cpp.
References lightmaps_s::allocated, lightmaps_s::direction_buffer, Mem_Free, R_UploadLightmapPage(), and lightmaps_s::sample_buffer.
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 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().
lightmaps_t r_lightmaps |
Definition at line 32 of file r_lightmap.cpp.
Referenced by R_LoadBspVertexArrays().