implemented unicode support and generation of font atlas texture

This commit is contained in:
2023-11-23 04:05:15 +02:00
parent 9b5b8847e6
commit 11bca0e5a4
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;
}