Function TRAP::Graphics::TextureManager::Load(const std::string&, const std::filesystem::path&, TextureCreationFlags)#
Function Documentation#
-
Ref<Texture> TRAP::Graphics::TextureManager::Load(const std::string &name, const std::filesystem::path &filepath, TextureCreationFlags flags = TextureCreationFlags::None)#
Load a 2D texture from file.
- Parameters:
name – Name for the texture.
filepath – File path of texture to load.
flags – Additional flags. Default: None.
- Returns:
Loaded texture.