Add window position information

This commit is contained in:
2024-01-15 20:48:21 +00:00
parent 81fbff96b8
commit 9806a5c708
2 changed files with 24 additions and 6 deletions

View File

@@ -37,6 +37,8 @@ struct rect {
struct window {
u32 id;
u64 x;
u64 y;
u64 width;
u64 height;
const char *title;
@@ -52,7 +54,8 @@ struct colour {
};
};
bool init_window(window_t *wnd, const char *title, u64 width, u64 height);
bool init_window(window_t *wnd, const char *title, u32 width, u32 height, i32 x,
i32 y);
void cleanup_window(window_t *wnd);
void clear_window(const window_t *wnd, colour_t colour);
void swap_buffers(const window_t *wnd);