picogl.backend.gl.driver.texture

Module for managing OpenGL texture creation, binding, and deletion.

This module provides the functionality for creating, binding, and deleting 2D textures using OpenGL. It leverages low-level OpenGL functions as well as custom driver and utility classes to abstract and simplify texture management.

Classes

GLTextureSystem

Texture creation, binding, and deletion.

Module Contents

class picogl.backend.gl.driver.texture.GLTextureSystem(driver: picogl.texture.gltexture_driver.GLTextureDriver | None = None)[source]

Texture creation, binding, and deletion.

driver[source]
create_texture(width, height, data) int[source]
static bind_texture(texture_id)[source]
static delete_texture(tex_id: int)[source]