MiniQuake2

src/miniquake2/platform/gamma.ml

Provides miniquake2 platform gamma facilities for this project.

Package
miniquake2.platform.gamma
Reachable
Yes

Imports

Declarations

apply

function apply(state, gamma, active)

Apply state.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
gammadynamic—gamma value consumed by this operation.
activedynamic—active value consumed by this operation.

View source

buildRamp

function buildRamp(gamma)

Build ramp.

ParameterTypeDefaultDescription
gammadynamic—gamma value consumed by this operation.

View source

create

function create()

GetDeviceGammaRamp may be unavailable under Remote Desktop, HDR compositing or a restrictive driver. Keep that a supported fallback state rather than a product-start failure, matching the original renderer's software table path.

View source

miniquake2.platform.gamma.GammaState struct

restore

function restore(state)

Restore state.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.

View source

update

function update(state, gamma, active)

Update state.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
gammadynamic—gamma value consumed by this operation.
activedynamic—active value consumed by this operation.

View source