From ecd7883521cbde02f4f1a6b23a7b3b601c32dbef Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 29 Jul 2019 09:06:09 +0800 Subject: *misc --- source/modules/asura-core/window/window.h | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'source/modules/asura-core/window/window.h') diff --git a/source/modules/asura-core/window/window.h b/source/modules/asura-core/window/window.h index d0f62c1..835535d 100644 --- a/source/modules/asura-core/window/window.h +++ b/source/modules/asura-core/window/window.h @@ -39,9 +39,7 @@ namespace AsuraEngine WINDOW_ALWAYS_ON_TOP = 1 << 14, ///< window should always be above others }; - /// /// Window初始化配置项 - /// struct WindowConfig { uint width, height; ///< 尺寸 @@ -63,17 +61,13 @@ namespace AsuraEngine { public: - /// /// 游戏运行时的窗口是唯一的,编辑器不会用到此类。 - /// LUAX_DECL_SINGLETON(Window); Window(); ~Window(); - /// /// 在这里真正创建窗口。 - /// bool Init(const WindowConfig& config); void Exit(); @@ -85,9 +79,7 @@ namespace AsuraEngine void Show(); void Hide(); - /// /// 如果是开启双缓冲的窗口,需要交换缓冲区来展示到前台 - /// void SwapRenderBuffer(); void Clear(const AEGraphics::Color& col = AEGraphics::Color::Black) override; @@ -98,7 +90,9 @@ namespace AsuraEngine private: - //----------------------------------------------------------------------------// + WindowImpl* mImpl; + + luaxport: LUAX_DECL_ENUM(WindowFlag, 0); @@ -114,10 +108,6 @@ namespace AsuraEngine LUAX_DECL_METHOD(_Clear); LUAX_DECL_METHOD(_Draw); - //----------------------------------------------------------------------------// - - WindowImpl* mImpl; - }; using RenderWindow = Window; -- cgit v1.1-26-g67d0