File Texture.h
Go to the source code of this file
Texture wrapper for OpenGL texture objects and texture resource management.More...
#include <iostream>#include <string>#include <GL/glew.h>#include "glm/glm.hpp"#include <unordered_map>
Classes
| Type | Name |
|---|---|
| class | Texture OpenGL texture object wrapper with RAII semantics. |
| class | TextureLib Global texture resource cache and factory. |
Detailed Description
Provides the Texture class for creating, managing, and manipulating OpenGL textures, along with TextureLib for global texture caching and resource sharing. Supports various texture types (2D, cubemap, HDR, depth, etc.) and format conversions.
GPU Resource Ownership: * Texture owns the OpenGL texture object (tex_ID) * Resources released via glDeleteTextures in destructor * Move semantics transfer ownership * TextureLib provides shared_ptr-based resource sharing
Architecture: * RAII wrapper for OpenGL texture objects * Global texture cache (TextureLib) prevents duplicate loading * Supports HDR, LDR, cubemaps, and framebuffer textures * Provides IBL processing (irradiance, specular, BRDF LUT)
The documentation for this class was generated from the following file src/render/Texture.h