107 const char* window_name,
YM_NO_DISCARD bool ym_gfx_window_is_open(const ym_gfx_window *window)
Checks if the current supplied window is open, or if it has been closed.
Definition: ym_gfx_unix.c:264
int int int int height
Definition: wglext.h:61
int int int width
Definition: wglext.h:61
#define YM_NO_DISCARD
YM_NO_DISCARD is a platform independent macro informing the compiler to warn if a return value from a...
Definition: ym_attributes.h:94
void ym_gfx_window_get_size(ym_gfx_window *window, uint *out_width, uint *out_height)
Gets the width and height dimension of the given window.
Definition: ym_gfx_unix.c:274
YM_NO_DISCARD ym_errc ym_gfx_create_window(u16 width, u16 height, const char *window_name, ym_gfx_window **out_window)
Creates a ym_gfx_window with the specified width, height, and name.
Definition: ym_gfx_unix.c:86
uint16_t u16
Definition: ym_types.h:9
void ym_gfx_window_display(ym_gfx_window *window)
Displays everything that has been rendered to the window.
Definition: ym_gfx_unix.c:297
ym_errc
Used to indicate erroneous behavior within a a function.
Definition: ym_error.h:36
YM_NO_DISCARD ym_errc ym_gfx_shutdown()
Finished the last of de-initialization needed by the ym_gfx module.
Definition: ym_gfx_unix.c:79
ym_mem_reg_id
Definition: ym_memory_regions.h:30
void ym_gfx_window_clear(ym_gfx_window *window)
Clears the given window.
void ym_gfx_window
Simple typedef for void, as no direct handling of the window is legal.
Definition: ym_gfx.h:22
YM_NO_DISCARD ym_errc ym_gfx_init(ym_mem_reg_id memory_region)
Initializes the ym_gfx module with a given memory region.
Definition: ym_gfx_unix.c:72
void ym_gfx_window_poll_events(ym_gfx_window *window)
Polls events tied to the window in question.
Definition: ym_gfx_unix.c:308
unsigned uint
Definition: ym_types.h:22
void ym_gfx_destroy_window(ym_gfx_window *window)
Destroys/deallocates the window pointed to by window.
Definition: ym_gfx_unix.c:245