al_init_qoi_font
This commit is contained in:
@@ -7,6 +7,9 @@
|
|||||||
#include <allegro5/bitmap_lock.h>
|
#include <allegro5/bitmap_lock.h>
|
||||||
#include <allegro5/color.h>
|
#include <allegro5/color.h>
|
||||||
#include <allegro5/file.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
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@@ -94,6 +97,12 @@ bool al_init_qoi() {
|
|||||||
return insane;
|
return insane;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool al_init_qoi_font() {
|
||||||
|
int insane = 0;
|
||||||
|
insane |= al_register_font_loader(".qoi", _al_load_bitmap_font);
|
||||||
|
return insane;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -10,6 +10,7 @@ extern "C" {
|
|||||||
//bool _al_identify_qoi(ALLEGRO_FILE* f);
|
//bool _al_identify_qoi(ALLEGRO_FILE* f);
|
||||||
|
|
||||||
bool al_init_qoi();
|
bool al_init_qoi();
|
||||||
|
bool al_init_qoi_font();
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user