diff options
author | chai <chaifix@163.com> | 2021-11-04 12:55:25 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-04 12:55:25 +0800 |
commit | d24f17b88d901b779c81c7434995675eb2a17429 (patch) | |
tree | d8f4cfee93d70598ef4b1419316b30acfff0eb04 /Runtime/Graphics/Texture.cpp | |
parent | 94a9a28de16badb75e66a60efca3b01d31cc0fc6 (diff) |
- Internal::
Diffstat (limited to 'Runtime/Graphics/Texture.cpp')
-rw-r--r-- | Runtime/Graphics/Texture.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Runtime/Graphics/Texture.cpp b/Runtime/Graphics/Texture.cpp index 0cabd07..19042e9 100644 --- a/Runtime/Graphics/Texture.cpp +++ b/Runtime/Graphics/Texture.cpp @@ -1,5 +1,6 @@ #include "ImageData.h"
#include "Texture.h"
+#include "Runtime/Math/Math.h" using namespace LuaBind;
@@ -196,7 +197,7 @@ Texture::~Texture() glDeleteTextures(1, &m_GPUID);
}
-void Texture::UpdateSubImage(Internal::Rect rect, int format, int type, const void* data)
+void Texture::UpdateSubImage(Rect rect, int format, int type, const void* data)
{
glBindTexture(GL_TEXTURE_2D, m_GPUID);
|