MiniQuake

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.

ParameterTypeDefaultDescription
mapdynamic—The map input consumed by `attach`.
samplesdynamic—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.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
lightSampleCountdynamic—Number of entries or units to process.

View source

forMap

function forMap(map)

Return RGB samples previously associated with this exact BSP instance.

ParameterTypeDefaultDescription
mapdynamic—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.

ParameterTypeDefaultDescription
filesystemdynamic—The filesystem input consumed by `loadForMap`.
mapdynamic—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