Support loading bitmap fonts from an asset pack
This commit is contained in:
1 parent
ab18f92fe5
commit
c5dd826c66
4 files changed
+20
-8
No files matched your search
@@ -6,6 +6,7 @@
|
||||
#include "AssetManager.h"
|
||||
#include "Renderer.h"
|
||||
#include "SDL_pixels.h"
|
||||
#include "pak.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -15,7 +16,7 @@ typedef struct bitmap_font BitmapFont;
|
||||
|
||||
BitmapFont *create_bitmap_font(AssetManager *am, const Renderer *renderer,
|
||||
const char *filepath, u64 tile_width,
|
||||
u64 tile_height);
|
||||
u64 tile_height, asset_pack_t *pack);
|
||||
|
||||
TextSize get_text_size_from_bitmap_font(BitmapFont *font, u64 font_size,
|
||||
const char *text);
|
||||
|
||||
Reference in new issue
Block a user