al_init_qoi_font

This commit is contained in:
2026-01-28 14:28:28 -06:00
parent a700dbda74
commit d0bca12e38
2 changed files with 10 additions and 0 deletions

View File

@@ -7,6 +7,9 @@
#include <allegro5/bitmap_lock.h>
#include <allegro5/color.h>
#include <allegro5/file.h>
#include <allegro5/allegro_font.h>
ALLEGRO_FONT* _al_load_bitmap_font(const char *filename, int size, int flags);
#ifdef __cplusplus
extern "C" {
@@ -94,6 +97,12 @@ bool al_init_qoi() {
return insane;
}
bool al_init_qoi_font() {
int insane = 0;
insane |= al_register_font_loader(".qoi", _al_load_bitmap_font);
return insane;
}
#ifdef __cplusplus
}
#endif

View File

@@ -10,6 +10,7 @@ extern "C" {
//bool _al_identify_qoi(ALLEGRO_FILE* f);
bool al_init_qoi();
bool al_init_qoi_font();
#ifdef __cplusplus
}