|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
Loads cubemap face images from a directory. More...
#include <CubemapTexture.h>
Public Member Functions | |
| CubemapTextureData | loadFromDirectory (const std::filesystem::path &directory) const |
| Loads six cubemap faces from a directory. | |
Loads cubemap face images from a directory.
The loader searches for posx, negx, posy, negy, posz, and negz files with jpg, jpeg, png, or bmp extensions. All faces are decoded as RGBA and must have identical dimensions.
Definition at line 52 of file CubemapTexture.h.
| CubemapTextureData Engine::Assets::CubemapTextureLoader::loadFromDirectory | ( | const std::filesystem::path & | directory | ) | const |
Loads six cubemap faces from a directory.
| directory | Directory containing posx, negx, posy, negy, posz, and negz image files. |
| std::runtime_error | When a face is missing, fails to decode, or has mismatched dimensions. |