diff options
author | chai <chaifix@163.com> | 2019-03-31 19:59:58 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-03-31 19:59:58 +0800 |
commit | 72bad342ad75294ae85aac8b2e2e7bea54193c15 (patch) | |
tree | 79079bc2ae800b97b13169a3be34aea0faa7428b /source/modules/asura-core/wnd/window_impl_sdl.h | |
parent | fb7ae1149a80a22c77014d0ece33f6f4b965b631 (diff) |
*misc
Diffstat (limited to 'source/modules/asura-core/wnd/window_impl_sdl.h')
-rw-r--r-- | source/modules/asura-core/wnd/window_impl_sdl.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/source/modules/asura-core/wnd/window_impl_sdl.h b/source/modules/asura-core/wnd/window_impl_sdl.h index 03e6579..0e81c0a 100644 --- a/source/modules/asura-core/wnd/window_impl_sdl.h +++ b/source/modules/asura-core/wnd/window_impl_sdl.h @@ -1,6 +1,10 @@ #ifndef __ASURA_WINDOW_SDL_H_ #define __ASURA_WINDOW_SDL_H_ +#include "../core_config.h" + +#if ASURA_WINDOW_SDL + #include <SDL2/SDL.h> #include "window.h" @@ -17,14 +21,14 @@ namespace AsuraEngine WindowImplSDL(const WindowConfig& config); ~WindowImplSDL(); - void SetSize(uint width, uint height); - void SetPosition(int x, int y); - void SetTitils(const std::string& title); + void SetSize(uint width, uint height) override; + void SetPosition(int x, int y) override; + void SetTitils(const std::string& title) override; - void Show(); - void Hide(); + void Show() override; + void Hide() override; - void SwapRenderBuffer(); + void SwapRenderBuffer() override; private: @@ -36,4 +40,6 @@ namespace AsuraEngine } } +#endif // ASURA_WINDOW_SDL + #endif
\ No newline at end of file |