picogl.backend.gl.driver.applicable_state ========================================= .. py:module:: picogl.backend.gl.driver.applicable_state .. autoapi-nested-parse:: Applicable State Attributes ---------- .. autoapisummary:: picogl.backend.gl.driver.applicable_state.T Classes ------- .. autoapisummary:: picogl.backend.gl.driver.applicable_state.ApplicableState Module Contents --------------- .. py:data:: T .. py:class:: ApplicableState Bases: :py:obj:`Generic`\ [\ :py:obj:`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. .. py:attribute:: _current :type: T | None :value: None .. py:method:: apply(state: T) -> None .. py:method:: _do_apply(state: T, prev: T | None) -> None :abstractmethod: .. py:method:: _is_same(old: T, new: T) -> bool :abstractmethod: