ui_tree_table
This commit is contained in:
@@ -15,6 +15,7 @@ struct rn_font_t {
|
||||
u32 first_char, last_char;
|
||||
u32 texture_id;
|
||||
|
||||
f32 computed_xchar_size;
|
||||
f32 size;
|
||||
f32 descent;
|
||||
f32 ascent;
|
||||
|
||||
@@ -50,6 +50,8 @@ fn void rn_reload_font(f32 font_size, f32 dpr) {
|
||||
glTextureStorage2D(atlas->texture_id, 1, GL_R8, (GLsizei)atlas->size.x, (GLsizei)atlas->size.y);
|
||||
glTextureSubImage2D(atlas->texture_id, 0, 0, 0, (GLsizei)atlas->size.x, (GLsizei)atlas->size.y, GL_RED, GL_UNSIGNED_BYTE, atlas->bitmap);
|
||||
rn->main_font->texture_id = atlas->texture_id;
|
||||
rn->main_font->computed_xchar_size = rn_measure_string(rn->main_font, s8_lit("_")).x;
|
||||
|
||||
ma_end_scratch(scratch);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user