picogl.utils.loader.texture
Texture Loader
Attributes
Classes
Loads a 2D texture from a DDS file or a standard image file using PIL. |
Module Contents
- class picogl.utils.loader.texture.TextureLoader(file_name: str, mode: str = 'RGB')[source]
Loads a 2D texture from a DDS file or a standard image file using PIL. Automatically creates an OpenGL texture ID.
- load_dds(file_name: str) None[source]
Load a DDS texture from file. Supports DXT1, DXT3, DXT5 compressed textures. Falls back to PIL loading if compressed texture loading fails.