summaryrefslogtreecommitdiff
path: root/Source/Asura.Engine/Graphics/Image.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Asura.Engine/Graphics/Image.h')
-rw-r--r--Source/Asura.Engine/Graphics/Image.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/Source/Asura.Engine/Graphics/Image.h b/Source/Asura.Engine/Graphics/Image.h
index e84dd6c..553df21 100644
--- a/Source/Asura.Engine/Graphics/Image.h
+++ b/Source/Asura.Engine/Graphics/Image.h
@@ -12,52 +12,52 @@
namespace AsuraEngine
{
- namespace Graphics
- {
+ namespace Graphics
+ {
- class ImageFactory;
+ class ImageFactory;
- ///
- /// ImageÊÇͼƬ´ÓÄÚ´æÖÐÔØÈëºó£¬¶ÁÈ¡½øÓÎÏ·ºó±£´æµÄ½á¹û¡£Ò»¸öImageÔÚÄÚ´æ¡¢ÏÔ´æÖÐÖ»»á±£´æÒ»·Ý£¬²»»á²úÉú¸±±¾¡£ÐèÒªÌØÕ÷
- /// »¯µÄÇø±ðimage£¬ÈçêµãλÖã¬Ëõ·ÅºÍÐýת½Ç¶È£¬Ê¹ÓÃsprite¡£»ù±¾ÊÇÒ»¸öÖ»¶ÁÀà¡£
- ///
- class Image final : public Texture
- {
- public:
+ ///
+ /// ImageÊÇͼƬ´ÓÄÚ´æÖÐÔØÈëºó£¬¶ÁÈ¡½øÓÎÏ·ºó±£´æµÄ½á¹û¡£Ò»¸öImageÔÚÄÚ´æ¡¢ÏÔ´æÖÐÖ»»á±£´æÒ»·Ý£¬²»»á²úÉú¸±±¾¡£ÐèÒªÌØÕ÷
+ /// »¯µÄÇø±ðimage£¬ÈçêµãλÖã¬Ëõ·ÅºÍÐýת½Ç¶È£¬Ê¹ÓÃsprite¡£»ù±¾ÊÇÒ»¸öÖ»¶ÁÀà¡£
+ ///
+ class Image final : public Texture
+ {
+ public:
- uint GetWidth();
- uint GetHeight();
+ uint GetWidth();
+ uint GetHeight();
- ///
- /// »ñµÃijһ¸öλÖõÄÏñËØ
- ///
- Color GetPixel(uint x, uint y);
+ ///
+ /// »ñµÃijһ¸öλÖõÄÏñËØ
+ ///
+ Color GetPixel(uint x, uint y);
- private:
+ private:
- friend class ImageFactory;
+ friend class ImageFactory;
- Image(Color* pixels, int width, int height);
- ~Image();
+ Image(Color* pixels, int width, int height);
+ ~Image();
- ///
- /// ´óС£¨ÒÔÏñËØÎªµ¥Î»£©
- ///
- uint mWidth, mHeight;
- Color* mPixels;
+ ///
+ /// ´óС£¨ÒÔÏñËØÎªµ¥Î»£©
+ ///
+ uint mWidth, mHeight;
+ Color* mPixels;
///
/// ID
///
uint mID;
- //----------------------------------------------------------------------------------------------------
+ //----------------------------------------------------------------------------------------------------
- LUAX_DECL_FACTORY(SimImage); //AsuraEngine.SimImage
+ LUAX_DECL_FACTORY(SimImage); //AsuraEngine.SimImage
- };
+ };
- }
+ }
}
#endif \ No newline at end of file