summaryrefslogtreecommitdiff
path: root/Source/Asura.Engine/Graphics/Texture.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-02-26 08:48:54 +0800
committerchai <chaifix@163.com>2019-02-26 08:48:54 +0800
commit3f457498b9c39d40a16a0ec6328880854f8cf4de (patch)
tree061ef9974b4da4c472909a65e6ebd10e8156c1b3 /Source/Asura.Engine/Graphics/Texture.cpp
parent684f71790401727cc45f4dad1822ddae46305072 (diff)
*misc
Diffstat (limited to 'Source/Asura.Engine/Graphics/Texture.cpp')
-rw-r--r--Source/Asura.Engine/Graphics/Texture.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/Source/Asura.Engine/Graphics/Texture.cpp b/Source/Asura.Engine/Graphics/Texture.cpp
index e69de29..6cb6497 100644
--- a/Source/Asura.Engine/Graphics/Texture.cpp
+++ b/Source/Asura.Engine/Graphics/Texture.cpp
@@ -0,0 +1,26 @@
+#include "Texture.h"
+
+namespace AsuraEngine
+{
+ namespace Graphics
+ {
+
+ Texture::Texture()
+ : mTextureHandle(0)
+ {
+ // GL texture
+ glGenTextures(1, &mTextureHandle);
+ }
+
+ Texture::~Texture()
+ {
+ glDeleteTextures(1, &mTextureHandle);
+ }
+
+ GLuint Texture::GetGLTextureHandle() const
+ {
+ return mTextureHandle;
+ }
+
+ }
+} \ No newline at end of file