unigi.ext/main.h

25 lines
1.1 KiB
C
Raw Permalink Normal View History

2024-09-10 23:53:56 +00:00
#ifndef unigi_header_ext_main
#define unigi_header_ext_main
2024-09-13 21:24:46 +00:00
#define unigi_ext_texture_fixedpointdepth 16
2024-09-10 23:53:56 +00:00
#include "types.h"
#include "structs.h"
void unigi_ext_texture_draw(
unigi_ext_type_texture * tex,
unigi_ext_type_texture * buffer,
2024-09-10 23:53:56 +00:00
unigi_ext_type_rect texbounds,
unigi_ext_type_rect bufbounds
);
2024-09-13 21:25:10 +00:00
void unigi_ext_rect_dimensions(unigi_ext_type_rect bounds, unigi_ext_type_2d_coord * width, unigi_ext_type_2d_coord * height);
2024-09-25 19:17:32 +00:00
unigi_ext_type_texture * unigi_ext_texture_create(unigi_type_resolution_2d_coord width, unigi_type_resolution_2d_coord height);
2024-09-13 21:25:10 +00:00
void unigi_ext_texture_destroy(unigi_ext_type_texture * texture);
unigi_ext_type_texture * unigi_ext_texture_open(char * path);
2024-10-16 00:56:36 +00:00
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();
2024-09-10 23:53:56 +00:00
#endif