summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/graphics/image.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-04-02 21:45:33 +0800
committerchai <chaifix@163.com>2019-04-02 21:45:33 +0800
commitaf7bdaa10ee71a319dc55c3c7556fa43a95c9dc9 (patch)
tree58611985001b78c5a76b78ae146fdb07dde31c1d /source/modules/asura-core/graphics/image.h
parent250e30d73f09e9da2b5a81d0fbae63744ae12a73 (diff)
*misc
Diffstat (limited to 'source/modules/asura-core/graphics/image.h')
-rw-r--r--source/modules/asura-core/graphics/image.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/source/modules/asura-core/graphics/image.h b/source/modules/asura-core/graphics/image.h
index 7795c08..d60bd24 100644
--- a/source/modules/asura-core/graphics/image.h
+++ b/source/modules/asura-core/graphics/image.h
@@ -44,12 +44,11 @@ namespace AsuraEngine
/// ͼύGPUϢ¹imageʹglTexImage2D
/// ύimageݡ
///
- bool Refresh(AEIO::DecodedData* decodeData) override;
- bool Refresh(AEIO::DecodedData* decodeData, const AEMath::Recti& rect);
+ bool Renew(AEIO::DecodedData* decodeData) override;
+ bool Renew(AEIO::DecodedData* decodeData, const AEMath::Vector2i& pos);
- uint GetWidth();
- uint GetHeight();
- Color32 GetPixel(uint x, uint y);
+ uint GetWidth();
+ uint GetHeight();
void Render(const RenderTarget* rt, const RenderState& state) override {};
void Render(const RenderTarget* rt, const Math::Rectf& quad, const RenderState& state) override {};
@@ -59,7 +58,7 @@ namespace AsuraEngine
//----------------------------------------------------------------------------//
LUAX_DECL_METHOD(_New);
- LUAX_DECL_METHOD(_Refresh);
+ LUAX_DECL_METHOD(_Renew);
LUAX_DECL_METHOD(_GetWidth);
LUAX_DECL_METHOD(_GetHeight);
LUAX_DECL_METHOD(_GetSize);
@@ -68,11 +67,7 @@ namespace AsuraEngine
//----------------------------------------------------------------------------//
- ///
- /// һͼƬһݵá
- ///
- ImageData* mImageData;
- Luax::LuaxMemberRef mImageDataRef;
+ uint32 mWidth, mHeight;
};