picogl.texture.binding ====================== .. py:module:: picogl.texture.binding .. autoapi-nested-parse:: Provides a context manager for binding a texture in OpenGL. This module allows temporary binding of a texture in an OpenGL context, ensuring that the original binding is restored afterwards. It helps manage state changes when working with OpenGL texture. Functions --------- .. autoapisummary:: picogl.texture.binding.gl_bound_texture Module Contents --------------- .. py:function:: gl_bound_texture(texture_id: int, target: picogl.texture.gltexture.GLTexture = GLTexture.TEXTURE_2D) Bind ``texture_id`` to ``target``, restoring the previous binding on exit.