mirror of
https://github.com/IllusionMan1212/cudoku.git
synced 2026-10-24 02:12:25 +00:00
implemented unicode support and generation of font atlas texture
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user