Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Assets::CubemapTextureLoader Class Reference

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.

Detailed Description

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.

Member Function Documentation

◆ loadFromDirectory()

CubemapTextureData Engine::Assets::CubemapTextureLoader::loadFromDirectory ( const std::filesystem::path & directory) const

Loads six cubemap faces from a directory.

Parameters
directoryDirectory containing posx, negx, posy, negy, posz, and negz image files.
Returns
CPU-side cubemap texture data.
Exceptions
std::runtime_errorWhen a face is missing, fails to decode, or has mismatched dimensions.

The documentation for this class was generated from the following file:
  • /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/Texture/CubemapTexture.h