diff options
Diffstat (limited to 'source/modules/asura-core/graphics/image.h')
-rw-r--r-- | source/modules/asura-core/graphics/image.h | 34 |
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; |