Function TRAP::Graphics::TextureManager::Load(const std::string&, const Image&, TextureCreationFlags)#
Function Documentation#
-
Ref<Texture> TRAP::Graphics::TextureManager::Load(const std::string &name, const Image &img, TextureCreationFlags flags = TextureCreationFlags::None)#
Load a 2D texture from TRAP::Image.
- Parameters:
name – Name for the texture.
img – TRAP::Image to use as texture.
flags – Additional flags. Default: None.
- Returns:
Loaded texture.