#ifndef unigi_header_main #define unigi_header_main #include "types.h" #include "structs.h" // MAIN unigi_type_error unigi_init(); // GRAPHICS unigi_type_error unigi_graphics_init(); unigi_type_resolution_range * unigi_resolutions; static inline void unigi_graphics_draw(unigi_type_resolution_1d_coord index, unigi_type_color color); static inline void unigi_graphics_blit(unigi_type_resolution_1d_coord index, unigi_type_color * pixels, unigi_type_resolution_1d_coord length); static inline 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