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
+5
View File
@@ -1,13 +1,18 @@
#pragma once
#include <stdlib.h>
#include "z_math.h"
typedef unsigned int wide_str;
Matrix4x4 identity();
void mult_4x4(Matrix4x4 *multiplicant, Matrix4x4 *multiplier);
void apply_scale(Matrix4x4 *matrix, Sizef scale);
void apply_rotation(Matrix4x4 *model, float angle);
void apply_translation(Matrix4x4 *matrix, Vec2f pos);
Matrix4x4 orthographic_projection_2d(float left, float right, float bottom, float top);
uint wide_str_len(const wide_str *text);
int max(int a, int b);
float maxf(float a, float b);
float clampf(float value, float min, float max);