#ifndef __WINDOW_HPP_ #define __WINDOW_HPP_ #include #include "defines.hpp" class vkrenderer; #if defined(LINUX) #include class window { public: window(uint32_t width, uint32_t height); void poll_events(); xcb_connection_t* connection; xcb_window_t win; uint32_t width; uint32_t height; bool isOpen; }; #elif defined(WINDOWS) #include 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; vkrenderer* renderer = nullptr; uint32_t width; uint32_t height; bool isOpen; }; #endif #endif // !__WINDOW_HPP_