picogl.backend.gl.driver.applicable_state

Applicable State

Attributes

T

Classes

ApplicableState

Apply a new state value, distinct from Applicable.

Module Contents

picogl.backend.gl.driver.applicable_state.T[source]
class picogl.backend.gl.driver.applicable_state.ApplicableState[source]

Bases: Generic[T]

Apply a new state value, distinct from Applicable.

Applicable objects apply their own current fields via apply().

ApplicableState subclasses receive an explicit state argument and

may cache the last applied value to skip redundant driver calls.

_current: T | None = None[source]
apply(state: T) → None[source]
abstract _do_apply(state: T, prev: T | None) → None[source]
abstract _is_same(old: T, new: T) → bool[source]