Files
src/miniquake/render/colored_lightmaps.ml
- Package
miniquake.render.colored_lightmaps- Reachable
- Yes
Imports
Declarations
# attach
function attach(map, samples)
Associate validated RGB light samples with the relocatable BSP object.
| Parameter | Type | Default | Description |
|---|
map | dynamic | — | The map input consumed by `attach`. |
samples | dynamic | — | The samples input consumed by `attach`. |
View source
# clear
function clear()
Clear sidecar roots when renderer/model state is torn down by tests.
View source
# decode
function decode(data, lightSampleCount)
Decode a version-one QLIT payload and verify that it exactly mirrors the BSP's scalar light sample count. Invalid sidecars are ignored safely.
| Parameter | Type | Default | Description |
|---|
data | dynamic | — | Input data consumed by the operation. |
lightSampleCount | dynamic | — | Number of entries or units to process. |
View source
# forMap
function forMap(map)
Return RGB samples previously associated with this exact BSP instance.
| Parameter | Type | Default | Description |
|---|
map | dynamic | — | The map input consumed by `forMap`. |
View source
# loadForMap
function loadForMap(filesystem, map)
Load the optional sidecar through Quake's normal search path. This supports loose files as well as .lit files supplied by a selected -game directory.
| Parameter | Type | Default | Description |
|---|
filesystem | dynamic | — | The filesystem input consumed by `loadForMap`. |
map | dynamic | — | The map input consumed by `loadForMap`. |
View source
# mapKeys
mapKeys
Tracks the module-level map keys state owned by `miniquake.render.colored_lightmaps`.
View source
# mapValues
mapValues
Tracks the module-level map values state owned by `miniquake.render.colored_lightmaps`.
View source