kiba-engine
|
Interface to access platform specific windowing functionality. More...
Go to the source code of this file.
Data Structures | |
struct | platform_window |
Structure holding information about a window. More... | |
Typedefs | |
typedef struct platform_window | platform_window |
Structure holding information about a window. | |
Functions | |
KB_API b8 | window_create (platform_window *window, const char *title, u32 x, u32 y, u32 w, u32 h, allocator *alloc) |
Create a platform window. More... | |
KB_API void | window_destroy (platform_window *window) |
Destroy platform window and clean up internal state. More... | |
KB_API b8 | window_poll_events (platform_window *window) |
Poll for events emited by the window. More... | |
Interface to access platform specific windowing functionality.
Definition in file window.h.
KB_API b8 window_create | ( | platform_window * | window, |
const char * | title, | ||
u32 | x, | ||
u32 | y, | ||
u32 | w, | ||
u32 | h, | ||
allocator * | alloc | ||
) |
Create a platform window.
window | the window to populate with data |
title | the text to display as the window title |
x | initial horizontal position on the screen |
y | initial vertical position on the screen |
w | initial width of the window |
h | initial height of the window |
Definition at line 17 of file window.c.
KB_API void window_destroy | ( | platform_window * | window | ) |
KB_API b8 window_poll_events | ( | platform_window * | window | ) |