aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2021-01-16 23:22:30 +0100
committerladevieq <ladevie.quentin@gmail.com>2021-01-16 23:25:16 +0100
commitdfc9a9b37d544d3a357b560829d2a9a48e5e5f5b (patch)
treeed7233644518f134081ca2878b526ae90812e130 /include
parentc4ed9a51d9630ceb87d5e4a256aee6cbdb82b0b9 (diff)
Add windows window event loop
Diffstat (limited to 'include')
-rw-r--r--include/window.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/window.hpp b/include/window.hpp
index c0e4756..550463d 100644
--- a/include/window.hpp
+++ b/include/window.hpp
@@ -11,6 +11,8 @@ class window {
public:
window(uint32_t width, uint32_t height);
+ void poll_events();
+
xcb_connection_t* connection;
xcb_window_t win;
@@ -26,6 +28,10 @@ class window {
public:
window(uint32_t width, uint32_t height);
+ void poll_events();
+
+ LRESULT message_handler(HWND hwnd, UINT umsg, WPARAM wparam, LPARAM lparam);
+
static LRESULT CALLBACK window_procedure(HWND hwnd, UINT umsg, WPARAM wparam, LPARAM lparam);
HWND win_handle;