diff options
author | chai <chaifix@163.com> | 2019-03-01 08:50:34 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-03-01 08:50:34 +0800 |
commit | 64d9d7b3eb7cece81da8b2cb56eb0f50d87a5964 (patch) | |
tree | 12bde99e5415f77f60f8873a66d09bfd3b84ec48 /Source/Asura.Engine/Window/Window.h | |
parent | e28a7d48d032fe7fd4c8789e95fbc659873a0adc (diff) |
*misc
Diffstat (limited to 'Source/Asura.Engine/Window/Window.h')
-rw-r--r-- | Source/Asura.Engine/Window/Window.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Source/Asura.Engine/Window/Window.h b/Source/Asura.Engine/Window/Window.h index 4e16e79..3456d75 100644 --- a/Source/Asura.Engine/Window/Window.h +++ b/Source/Asura.Engine/Window/Window.h @@ -1,13 +1,20 @@ #ifndef __ASURA_ENGINE_WINDOW_H__ #define __ASURA_ENGINE_WINDOW_H__ +#include "SDL2/Sdl.h" #include "Graphics/RenderTarget.h" +#include "Math/Vector2.hpp" namespace AsuraEngine { namespace Graphics { + enum WindowStyle + { + + }; + /// /// ڣֶ֧രڡڱ༭Ҫ֧֣runnerֻҪһڡ /// @@ -19,8 +26,35 @@ namespace AsuraEngine ~Window(); + SDL_Window* GetSDLHandle(); + + void SetSize(uint width, uint height); + + void SetPosition(int x, int y); + + void SetTitle(const std::string& title); + + void SetWindowStyle(WindowStyle style); + + void Show(); + + void Hide(); + + /// + /// ǿ˫ĴڣҪչʾǰ̨ + /// + void SwapRenderBuffer(); + private: + /// + /// SDL window handle. + /// + SDL_Window* mWindowHandle; + + Math::Vector2i mPosition; + + Math::Vector2i mSize; }; |