aboutsummaryrefslogtreecommitdiff
path: root/source/Texture.cpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-04-15 20:30:39 -0700
committerrtk0c <[email protected]>2022-04-15 20:30:39 -0700
commitafcac59c7d04f4337d6b04ebed8cac7e871ccc50 (patch)
tree8c32b90b4a0ab762a68f228dc8cc4e7f52fc5bd7 /source/Texture.cpp
parentf2a1481123ac23aeb4937df5f61c57e0e4f1ff52 (diff)
Changeset: 7 Work on Material system
Diffstat (limited to 'source/Texture.cpp')
-rw-r--r--source/Texture.cpp13
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;
+ }
+}