From 684f71790401727cc45f4dad1822ddae46305072 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Feb 2019 09:07:37 +0800 Subject: +widgets --- Source/Asura.Engine/Graphics/Image.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Source/Asura.Engine/Graphics/Image.h') diff --git a/Source/Asura.Engine/Graphics/Image.h b/Source/Asura.Engine/Graphics/Image.h index 553df21..bdd7c1c 100644 --- a/Source/Asura.Engine/Graphics/Image.h +++ b/Source/Asura.Engine/Graphics/Image.h @@ -1,10 +1,8 @@ #ifndef __ASURA_ENGINE_IMAGE_H__ #define __ASURA_ENGINE_IMAGE_H__ -#include "StringMap.hpp" -#include "String.h" -#include "Map.h" #include "Math/Vector2.h" +#include "StringMap.hpp" #include "Manager.hpp" #include "Texture.h" #include "Color.h" @@ -19,7 +17,7 @@ namespace AsuraEngine /// /// Image是图片从内存中载入后,读取进游戏后保存的结果。一个Image在内存、显存中只会保存一份,不会产生副本。需要特征 - /// 化的区别image,如锚点位置,缩放和旋转角度,使用sprite。基本是一个只读类。 + /// 化的区别image,如锚点位置,缩放和旋转角度,使用sprite。是一个只读类。主要是考虑到editor和engine使用不同的封装。 /// class Image final : public Texture { @@ -53,7 +51,9 @@ namespace AsuraEngine //---------------------------------------------------------------------------------------------------- - LUAX_DECL_FACTORY(SimImage); //AsuraEngine.SimImage + // 图片的Sim类,具体的封装在AsuraEngine.Image里面,包含一个成员AsuraEngine.SimImage,在AsuraEngine.Image里面对 + // 数据做一个缓存。 + LUAX_DECL_FACTORY(SimImage); }; -- cgit v1.1-26-g67d0