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

@@ -206,13 +206,13 @@ void rn_set_clip(r2f32_t rect) {
cmd->rect = rect;
}
void rn_init(ma_arena_t *perm, f32 _font_size) {
void rn_init(ma_arena_t *perm, s8_t font_data, f32 _font_size) {
rn_state.cap = 1024*256;
rn_state.vertices = ma_push_array(perm, rn_vertex_t, rn_state.cap);
{
ma_temp_t scratch = ma_begin_scratch1(perm);
s8_t font_data = rn_get_default_font(tcx.temp);
// s8_t font_data = ;//rn_get_default_font(tcx.temp);
rn_atlas_t *atlas = rn_create_atlas(scratch.arena, (v2i32_t){2048, 2048});
u32 font_size = (u32)_font_size;