Function TRAP::Graphics::TextureManager::Load(const std::string&, std::span<const Image *, 6>, TextureCreationFlags)#
Function Documentation#
-
Ref<Texture> TRAP::Graphics::TextureManager::Load(const std::string &name, std::span<const Image*, 6> imgs, TextureCreationFlags flags = TextureCreationFlags::None)#
Load a cube texture from 6 TRAP::Images.
- Parameters:
name – Name for the texture.
imgs – TRAP::Images to use as texture. Order: +X, -X, +Y, -Y, +Z, -Z.
flags – Additional flags. Default: None.
- Returns:
Loaded texture.