summaryrefslogtreecommitdiffstats
path: root/include/video.hpp
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2019-01-21 20:44:55 +0100
committerNao Pross <naopross@thearcway.org>2019-01-21 20:44:55 +0100
commit66bb51fa6148d6910da054bacd4fcbd2fa7b5bab (patch)
tree1ab0ee31ddad359c40a3b91d39d4efd3f537e542 /include/video.hpp
parentAdd events wrapper (diff)
downloadlibwsdl2-66bb51fa6148d6910da054bacd4fcbd2fa7b5bab.tar.gz
libwsdl2-66bb51fa6148d6910da054bacd4fcbd2fa7b5bab.zip
Inlined functions and fix debug header
Diffstat (limited to '')
-rw-r--r--include/video.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/video.hpp b/include/video.hpp
index 3c2a238..2749d11 100644
--- a/include/video.hpp
+++ b/include/video.hpp
@@ -24,10 +24,9 @@ namespace wrapsdl2 {
void open();
void close();
-
- void show();
- void hide();
- void raise();
+ inline void show() { SDL_ShowWindow(m_window); }
+ inline void hide() { SDL_HideWindow(m_window); }
+ inline void raise() { SDL_RaiseWindow(m_window); }
// getters
bool is_open();