aboutsummaryrefslogtreecommitdiff
path: root/include/RenderBackend/OpenGL/Texture2D.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-02-15 01:36:41 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-18 15:22:10 +0100
commite4d073947d09634e95325ddaf8f1615f85e85901 (patch)
tree1bfa96dd7692f0d1c0029b3ba9a82e4ba719eb71 /include/RenderBackend/OpenGL/Texture2D.hpp
parentb366f3d0c573468ecd0b59da43dfcbc847334b19 (diff)
Load texture in obj model loader.. broken
Diffstat (limited to 'include/RenderBackend/OpenGL/Texture2D.hpp')
-rw-r--r--include/RenderBackend/OpenGL/Texture2D.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/RenderBackend/OpenGL/Texture2D.hpp b/include/RenderBackend/OpenGL/Texture2D.hpp
index 9f7c855..48b613b 100644
--- a/include/RenderBackend/OpenGL/Texture2D.hpp
+++ b/include/RenderBackend/OpenGL/Texture2D.hpp
@@ -11,9 +11,13 @@ namespace amalgine
{
DISABLE_COPY(Texture2D)
public:
+ // Not thread safe
Texture2D(Image *image);
~Texture2D();
+
+ i32 get_texture_id() const { return texture_id; }
private:
- u32 textureId;
+ i32 texture_id;
+ u32 texture_ref;
};
}