implemented unicode support and generation of font atlas texture

This commit is contained in:
2023-12-11 23:00:31 +02:00
committed by Illusion
parent 29adeb37ea
commit 3f4f9c5103
11 changed files with 2064 additions and 59 deletions
+8
View File
@@ -70,6 +70,14 @@ Matrix4x4 orthographic_projection_2d(float left, float right, float bottom, floa
return result;
}
uint wide_str_len(const wide_str *text) {
uint len = 0;
for (uint i = 0; text[i] != '\0'; i++) {
len++;
}
return len;
}
int max(int a, int b) {
return a > b ? a : b;
}