diff options
author | chai <chaifix@163.com> | 2019-03-27 22:18:14 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-03-27 22:18:14 +0800 |
commit | 69f7d1bd745ed5680b9bc4e3cfdd882ff2a5ad26 (patch) | |
tree | 729e563da8fea6cf8c5455f3afdb3c6ce0aecde4 /source/libs/asura-lib-core/graphics/image.h | |
parent | 66c5fdc564dd892ed265132d6c1378dbe3cebcee (diff) |
+threading
Diffstat (limited to 'source/libs/asura-lib-core/graphics/image.h')
-rw-r--r-- | source/libs/asura-lib-core/graphics/image.h | 15 |
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); }; - + } } |