Add basic implementation for bitmap font

This commit is contained in:
abdelrahman committed 2023-10-01 01:09:23 +01:00
1 parent 918de7bce0
commit 7ec35a0b27
3 files changed
+120 -10

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
#ifndef BITMAP_FONT_H
#define BITMAP_FONT_H
#include "AssetManager.h"
#include "Renderer.h"
#ifdef __cplusplus
extern "C" {
#endif // !__cplusplus
typedef struct bitmap_font BitmapFont;
BitmapFont *load_bitmap_font(AssetManager *am, const Renderer *renderer,
const char *filepath, u64 tile_width,
u64 tile_height);
RenderRect get_character_sprite(BitmapFont *font, u64 index);
void unload_bitmap_font(AssetManager *am, BitmapFont **font);
#ifdef __cplusplus
}
#endif // !__cplusplus
#endif // !BITMAP_FONT_H