#pragma once #include // HWND #include typedef struct Window Window; /// Initialise the window subsystem. /// /// This function must be called at the start of your application before any /// Windows are created. bool window_global_init(); /// Terminate the window subsystem. /// /// This function should be called at the end of your application. Any existing /// Windows are destroyed and are invalid beyond this call. void window_global_quit(); /// Return the last Window error. const char* window_get_error(); Window* window_init(int width, int height, const char* title); void window_destroy(Window**); HWND window_handle(Window*); void window_update(Window*); bool window_should_close(const Window*);