Function TRAP::Graphics::TextureManager::Load(const std::string&, const std::array<std::filesystem::path, 6>&, TextureCreationFlags)#

Function Documentation#

Ref<Texture> TRAP::Graphics::TextureManager::Load(const std::string &name, const std::array<std::filesystem::path, 6> &filepaths, TextureCreationFlags flags = TextureCreationFlags::None)#

Load a cube texture from files.

Parameters:
  • name – Name for the texture.

  • filepaths – File paths of all 6 textures to load. Order: +X, -X, +Y, -Y, +Z, -Z.

  • flags – Additional flags. Default: None.

Returns:

Loaded texture.