picogl.texture.mapping ====================== .. py:module:: picogl.texture.mapping .. autoapi-nested-parse:: This module provides functionality for managing 2D OpenGL textures. It includes a class for creating, binding, uploading data, setting parameters, generating mipmaps, and deleting 2D textures in OpenGL. This class ensures efficient management of texture resources in graphics applications. Example Usage: ============== >> spec = TextureSpec(width=width, height=height) >> tex = Texture2D(spec, data) >> driver = GLTextureDriver() >> driver.create(tex) >> driver.bind(tex) >> driver.set_parameters() >> driver.upload(tex) >> driver.generate_mipmap() >> return tex.handle Attributes ---------- .. autoapisummary:: picogl.texture.mapping.FORMAT_MAP picogl.texture.mapping.FILTER_MAP picogl.texture.mapping.WRAP_MAP Module Contents --------------- .. py:data:: FORMAT_MAP .. py:data:: FILTER_MAP .. py:data:: WRAP_MAP