summaryrefslogtreecommitdiff
path: root/source/libs/asura-lib-core/graphics/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/libs/asura-lib-core/graphics/image.h')
-rw-r--r--source/libs/asura-lib-core/graphics/image.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/source/libs/asura-lib-core/graphics/image.h b/source/libs/asura-lib-core/graphics/image.h
index 0e4ea0a..4c1c7b5 100644
--- a/source/libs/asura-lib-core/graphics/image.h
+++ b/source/libs/asura-lib-core/graphics/image.h
@@ -10,6 +10,7 @@
#include "texture.h"
#include "color.h"
+#include "color32.h"
#include "image_data.h"
#include "render_state.h"
@@ -31,6 +32,8 @@ namespace AsuraEngine
{
public:
+ LUAX_DECL_FACTORY(SimImage);
+
Image();
~Image();
@@ -56,21 +59,21 @@ namespace AsuraEngine
private:
- ImageData* mImageData;
+ ImageData* mImageData;
+ Luax::LuaxMemberRef mImageDataRef;
Math::Vector2u mSize;
- public:
-
- LUAX_DECL_FACTORY(SimImage);
-
+ LUAX_DECL_METHOD(_New);
LUAX_DECL_METHOD(_Load);
LUAX_DECL_METHOD(_GetWidth);
LUAX_DECL_METHOD(_GetHeight);
LUAX_DECL_METHOD(_GetSize);
+ LUAX_DECL_METHOD(_GetPixel);
+ LUAX_DECL_METHOD(_Render);
};
-
+
}
}