mt_embed_file

This commit is contained in:
Krzosa Karol
2025-01-18 10:09:10 +01:00
parent 7e52440e18
commit 2e445d2592
12 changed files with 1761 additions and 63 deletions

View File

@@ -21,24 +21,20 @@
#define STBTT_memcpy memory_copy
#define STBTT_memset memory_set
#include "render/stb_truetype.h"
#include "render/backup_font.c"
// #include "render/backup_font.c"
#include "render/font.c"
#include "render/render_opengl.c"
#include "wasm_app.gen.c"
#include "ui_iter.c"
#include "ui.c"
typedef struct globals_t globals_t;
struct globals_t {
app_event_t event;
};
gb globals_t *globals;
#define mt_embed_file(variable, path)
fn void app_init(f32 dpr) {
ma_arena_t *perm = &tcx._perm;
globals = ma_push_type(perm, globals_t);
rn_init(perm, 50 * dpr);
mt_embed_file(font_liberation_mono, "package/liberation-mono.ttf");
rn_init(perm, s8_array(font_liberation_mono), 50 * dpr);
ui_demo_init(perm);
}