aboutsummaryrefslogtreecommitdiff
path: root/source/Texture.cpp
diff options
context:
space:
mode:
authorhnOsmium0001 <[email protected]>2022-04-15 20:30:39 -0700
committerhnOsmium0001 <[email protected]>2022-04-15 20:30:39 -0700
commit509201784d6525fc26345e55a56ab81e4a7616b3 (patch)
treebcd68f247937324d06480b58a284b47e1c6bb2b8 /source/Texture.cpp
parent989f90ebe2c37e8a517691a35d7e0d827fbe7006 (diff)
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;
+ }
+}