picogl.backend.modern.core.camera.projection_state

Cached GLM perspective projection (no GL matrix stack).

Classes

GLMProjectionState

Applies ProjectionConfig by computing a GLM perspective matrix.

Module Contents

class picogl.backend.modern.core.camera.projection_state.GLMProjectionState[source]

Bases: picogl.backend.gl.driver.applicable_state.ApplicableState

Applies ProjectionConfig by computing a GLM perspective matrix.

matrix: pyglm.glm.mat4 | None = None[source]
_do_apply(state: picogl.core.camera.ProjectionConfig, prev: picogl.core.camera.ProjectionConfig | None) → None[source]
_is_same(old: picogl.core.camera.ProjectionConfig, new: picogl.core.camera.ProjectionConfig) → bool[source]