unigi/main.h
2024-09-12 00:19:07 +02:00

24 lines
766 B
C

#ifndef unigi_header_main
#define unigi_header_main
#include "structs.h"
#include "types.h"
// MAIN
unigi_type_error unigi_init();
// GRAPHICS
unigi_type_error unigi_graphics_init();
extern unigi_type_resolution_range * unigi_resolutions;
void unigi_graphics_draw(unigi_type_resolution_1d_coord index, unigi_type_color color);
void unigi_graphics_blit(unigi_type_resolution_1d_coord index, unigi_type_color * pixels, unigi_type_resolution_1d_coord length);
void unigi_graphics_flush();
unigi_type_error unigi_window_create(unigi_type_resolution resolution, char * title);
unigi_type_time_span unigi_time_get();
// TIME
#define unigi_time_clocks_per_s 1000000
void unigi_time_sleep(unigi_type_time_span ms);
void unigi_event_get(unigi_type_event * event);
#endif