Ylva And Malin
Data Structures | Functions
ym_gfx_win.c File Reference
#include <ym_gfx.h>
#include <ym_gfx_gl.h>
#include <Windows.h>
Include dependency graph for ym_gfx_win.c:

Data Structures

struct  ym_gfx_win_window
 

Functions

ym_errc ym_gfx_init (ym_mem_reg_id memory_region)
 Initializes the ym_gfx module with a given memory region. More...
 
ym_errc ym_gfx_shutdown ()
 Finished the last of de-initialization needed by the ym_gfx module. More...
 
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 *w)
 Destroys/deallocates the window pointed to by window. More...
 
bool ym_gfx_window_is_open (const ym_gfx_window *w)
 Checks if the current supplied window is open, or if it has been closed. More...
 
void ym_gfx_window_get_size (ym_gfx_window *w, uint *out_width, uint *out_height)
 Gets the width and height dimension of the given window. More...
 
void ym_gfx_window_clear (YM_UNUSED ym_gfx_window *w)
 
void ym_gfx_window_display (ym_gfx_window *w)
 Displays everything that has been rendered to the window. More...
 
void ym_gfx_window_poll_events (ym_gfx_window *w)
 Polls events tied to the window in question. More...
 

Function Documentation

void ym_gfx_window_clear ( YM_UNUSED ym_gfx_window w)