#ifndef unigi_header_ext_main #define unigi_header_ext_main #define unigi_ext_texture_fixedpointdepth 16 #include "types.h" #include "structs.h" void unigi_ext_texture_draw( unigi_ext_type_texture * tex, unigi_ext_type_texture * buffer, unigi_ext_type_rect texbounds, unigi_ext_type_rect bufbounds ); void unigi_ext_rect_dimensions(unigi_ext_type_rect bounds, unigi_ext_type_2d_coord * width, unigi_ext_type_2d_coord * height); unigi_ext_type_texture * unigi_ext_texture_create(unigi_type_resolution_2d_coord width, unigi_type_resolution_2d_coord height); void unigi_ext_texture_destroy(unigi_ext_type_texture * texture); unigi_ext_type_texture * unigi_ext_texture_open(char * path); unigi_ext_type_sound_sample * unigi_ext_sound_open(char * path); unigi_ext_type_sound_channel * unigi_ext_sound_channels; size_t unigi_ext_sound_channels_size = 0; unigi_ext_type_sound_channel * unigi_ext_sound_channel_create(unigi_ext_type_sound_sample * sample); void unigi_ext_sound_channel_play(unigi_ext_type_sound_channel * channel, uint8_t * buffer, size_t size); void unigi_ext_sound_handle(uint8_t * buffer, size_t size); void unigi_ext_sound_init(); #endif