diff options
Diffstat (limited to 'source/Texture.cpp')
-rw-r--r-- | source/Texture.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/Texture.cpp b/source/Texture.cpp index 968c4bc..08641e1 100644 --- a/source/Texture.cpp +++ b/source/Texture.cpp @@ -97,3 +97,16 @@ GLuint Texture::GetHandle() const { bool Texture::IsValid() const { return mHandle != 0; } + +void TextureManager::DiscoverTextures() { + // TODO +} + +Texture* TextureManager::FindTexture(std::string_view name) { + auto iter = mTextures.find(name); + if (iter != mTextures.end()) { + return iter->second.Get(); + } else { + return nullptr; + } +} |