picogl.renderer.glresourceregistry ================================== .. py:module:: picogl.renderer.glresourceregistry .. autoapi-nested-parse:: gl Context Class Attributes ---------- .. autoapisummary:: picogl.renderer.glresourceregistry.T Classes ------- .. autoapisummary:: picogl.renderer.glresourceregistry.GLResourceRegistry Module Contents --------------- .. py:data:: T .. py:class:: GLResourceRegistry gl Resource Registry .. py:attribute:: _creation_context .. py:attribute:: _contexts .. py:attribute:: _cache :type: dict[object, object] .. py:attribute:: vaos :type: dict[str, picogl.backend.modern.core.vertex.array.object.VertexArrayObject] .. py:attribute:: current_vao :type: Optional[picogl.backend.modern.core.vertex.array.object.VertexArrayObject] :value: None .. py:attribute:: _creation_thread_id .. py:attribute:: shader_type :type: picogl.shaders.ShaderType .. py:attribute:: textures :type: dict[str, int] .. py:attribute:: active_texture :type: Optional[str] :value: None .. py:attribute:: model_matrix :type: numpy.ndarray .. py:attribute:: view_matrix :type: numpy.ndarray .. py:attribute:: projection_matrix :type: numpy.ndarray .. py:attribute:: eye_position :type: numpy.ndarray .. py:property:: context .. py:method:: _get_bucket(ctx) .. py:method:: register(ctx, resource_type: str, resource) .. py:method:: unregister(ctx, resource_type: str, resource) .. py:method:: get_context_resources(ctx) .. py:method:: validate_context() .. py:method:: get_context_key(ctx) .. py:method:: get_or_create(key: object, factory: Callable[[], T]) -> T Return a cached gl resource, creating it with *factory* if needed.