summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/Texture.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-30 11:32:16 +0800
committerchai <chaifix@163.com>2021-10-30 11:32:16 +0800
commit42ec7286b2d36a9ba22925f816a17cb1cc2aa5ce (patch)
tree24bc7009457a8d7500f264e89946dc20d069294f /Runtime/Graphics/Texture.h
parent164885fd98d48703bd771f802d79557b7db97431 (diff)
+ Penlight
Diffstat (limited to 'Runtime/Graphics/Texture.h')
-rw-r--r--Runtime/Graphics/Texture.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Runtime/Graphics/Texture.h b/Runtime/Graphics/Texture.h
index 1aa8bdf..d02634c 100644
--- a/Runtime/Graphics/Texture.h
+++ b/Runtime/Graphics/Texture.h
@@ -61,6 +61,7 @@ public:
class Texture : public LuaBind::NativeClass<Texture>
{
public:
+ Texture(TextureSetting setting, ImageData* imgData)/*throw TextureException*/;
Texture(LuaBind::VM* vm, TextureSetting setting, ImageData* imgData)/*throw TextureException*/;
~Texture();
@@ -69,7 +70,9 @@ public:
GET(GLuint, GpuID, m_GPUID);
-protected:
+private:
+ void Init(TextureSetting setting, ImageData* imgData);
+
GLuint m_GPUID;
int m_Width, m_Height;