Files
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.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
gamma | dynamic | — | gamma value consumed by this operation. |
active | dynamic | — | active value consumed by this operation. |
View source
# buildRamp
function buildRamp(gamma)
Build ramp.
| Parameter | Type | Default | Description |
|---|
gamma | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
View source
# update
function update(state, gamma, active)
Update state.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
gamma | dynamic | — | gamma value consumed by this operation. |
active | dynamic | — | active value consumed by this operation. |
View source