Function TRAP::Graphics::TextureManager::Load(const std::string&, const Image&, TextureCubeFormat, TextureCreationFlags)#

Function Documentation#

Ref<Texture> TRAP::Graphics::TextureManager::Load(const std::string &name, const Image &img, TextureCubeFormat format, TextureCreationFlags flags = TextureCreationFlags::None)#

Load a cube texture from TRAP::Image.

Parameters:
  • name – Name for the texture.

  • imgTRAP::Image to use as texture.

  • format – Format of the cube texture.

  • flags – Additional flags. Default: None.

Returns:

Loaded texture.