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