summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/graphics/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/modules/asura-core/graphics/image.h')
-rw-r--r--source/modules/asura-core/graphics/image.h34
1 files changed, 6 insertions, 28 deletions
diff --git a/source/modules/asura-core/graphics/image.h b/source/modules/asura-core/graphics/image.h
index 8e3e7d3..d7cd37f 100644
--- a/source/modules/asura-core/graphics/image.h
+++ b/source/modules/asura-core/graphics/image.h
@@ -24,40 +24,26 @@ namespace AsuraEngine
namespace Graphics
{
- ///
- /// ImageͼƬڴ󣬶ȡϷ󱣴ĽһImageڴ桢Դֻᱣһ
- /// ݣҪimageêλãźתǶȣʹsprite
- /// һֻࡣҪǿǵeditorengineʹòͬķװImageֻṩȾʱҪ
- /// sampler2Dϸ˵Image޹أӦImageṩFrameworkУ
- /// Ⱦʵspritespriteṩ˶ݺͷ任
- ///
- class Image ASURA_FINAL
- : public AEScripting::Portable<Image, Texture>
+ class Image ASURA_FINAL : public AEScripting::Portable<Image, Texture>
{
public:
Image();
-
~Image();
- ///
- /// ͼύGPUϢ¹imageʹglTexImage2D
- /// ύimageݡ
- ///
bool Load(AEImage::ImageData* decodeData);
bool Load(AEImage::ImageData* decodeData, const AEMath::Vector2i& pos);
uint GetWidth();
uint GetHeight();
- ///
- /// һgpu buffer䶥positionݺUV.
- ///
GPUBuffer* GenGPUBuffer();
private:
- //----------------------------------------------------------------------------//
+ uint32 mWidth, mHeight;
+
+ luaxport:
LUAX_DECL_FACTORY(Image, Texture);
@@ -69,18 +55,10 @@ namespace AsuraEngine
LUAX_DECL_METHOD(_GetPixel);
LUAX_DECL_METHOD(_Render);
- //----------------------------------------------------------------------------//
-
- uint32 mWidth, mHeight;
-
-#if ASURA_EDITOR
-
-#endif
-
};
- }
-}
+ } // Graphics
+} // AsuraEngine
namespace AEGraphics = AsuraEngine::Graphics;