Ylva And Malin
Typedefs | Functions
ym_gfx.h File Reference
#include <stdbool.h>
#include <ym_core.h>
#include <ym_memory.h>
Include dependency graph for ym_gfx.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void ym_gfx_window
 Simple typedef for void, as no direct handling of the window is legal. More...
 

Functions

YM_NO_DISCARD ym_errc ym_gfx_init (ym_mem_reg_id memory_region)
 Initializes the ym_gfx module with a given memory region. More...
 
YM_NO_DISCARD ym_errc ym_gfx_shutdown ()
 Finished the last of de-initialization needed by the ym_gfx module. More...
 
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. More...
 
void ym_gfx_destroy_window (ym_gfx_window *window)
 Destroys/deallocates the window pointed to by window. More...
 
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. More...
 
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. More...
 
void ym_gfx_window_clear (ym_gfx_window *window)
 Clears the given window. More...
 
void ym_gfx_window_display (ym_gfx_window *window)
 Displays everything that has been rendered to the window. More...
 
void ym_gfx_window_poll_events (ym_gfx_window *window)
 Polls events tied to the window in question. More...