summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/window/window_impl_sdl.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/modules/asura-core/window/window_impl_sdl.h')
-rw-r--r--source/modules/asura-core/window/window_impl_sdl.h42
1 files changed, 20 insertions, 22 deletions
diff --git a/source/modules/asura-core/window/window_impl_sdl.h b/source/modules/asura-core/window/window_impl_sdl.h
index 1f4ea0e..20f5c95 100644
--- a/source/modules/asura-core/window/window_impl_sdl.h
+++ b/source/modules/asura-core/window/window_impl_sdl.h
@@ -9,38 +9,36 @@
#include "window.h"
-namespace AsuraEngine
-{
- namespace Window
- {
+namespace_begin(AsuraEngine)
+namespace_begin(Window)
- class WindowImplSDL ASURA_FINAL : public WindowImpl
- {
- public:
+class WindowImplSDL ASURA_FINAL : public WindowImpl
+{
+public:
- WindowImplSDL();
- ~WindowImplSDL();
+ WindowImplSDL();
+ ~WindowImplSDL();
- bool Init(const WindowConfig& config);
+ bool Init(const WindowConfig& config);
- void SetSize(uint width, uint height) override;
- void SetPosition(int x, int y) override;
- void SetTitils(const std::string& title) override;
+ void SetSize(uint width, uint height) override;
+ void SetPosition(int x, int y) override;
+ void SetTitils(const std::string& title) override;
- void Show() override;
- void Hide() override;
+ void Show() override;
+ void Hide() override;
- void SwapRenderBuffer() override;
+ void SwapRenderBuffer() override;
- private:
+private:
- SDL_Window* m_Wnd;
- SDL_GLContext m_GLContext;
+ SDL_Window* m_Wnd;
+ SDL_GLContext m_GLContext;
- };
+};
- }
-}
+namespace_end
+namespace_end
#endif // ASURA_WINDOW_SDL