|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
Loader for EXR (OpenEXR) image files. More...
#include <ExrLoader.h>
Public Member Functions | |
| ExrLoader ()=default | |
| ~ExrLoader ()=default | |
| tinygltf::Image | load (const std::filesystem::path &filename) |
| Load a complete EXR image file. | |
| ExrHeader | loadHeader (std::filesystem::path path) |
| Load only the header information from an EXR file. | |
Loader for EXR (OpenEXR) image files.
Provides functionality to load EXR image files, with support for loading headers separately (useful for ECS systems) and loading full image data. Converts planar EXR channel data to interleaved format compatible with glTF/OpenGL.
Definition at line 54 of file ExrLoader.h.
|
default |
|
default |
| tinygltf::Image Engine::Assets::Textures::ExrLoader::load | ( | const std::filesystem::path & | filename | ) |
Load a complete EXR image file.
Loads both header and pixel data from an EXR file and converts it to a tinygltf::Image format. The image data is interleaved (RGBA) from the planar format used by EXR files. Channel order is converted from EXR's BGR to RGB for OpenGL compatibility.
| filename | Path to the EXR file to load |
| Empty | image if loading fails |
|
nodiscard |
Load only the header information from an EXR file.
Parses and extracts header information without loading pixel data. Useful for inspecting file properties before loading, or for use with ECS systems that need header data as components.
| path | Path to the EXR file |
| ExrHeader | with valid=false if parsing fails |