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