load fonts at runtime

This commit is contained in:
Alessandro Mauri 2023-03-04 18:54:00 +01:00
parent 30510ab69a
commit 93f93a594e
5 changed files with 87 additions and 36 deletions

View file

@ -4,7 +4,7 @@
#include <SDL2/SDL.h>
#define FONT_PATH "./monospace.ttf"
#define DEFAULT_FONT "./monospace.ttf"
#define FONT_VERSHADER "./font_vertshader.glsl"
#define FONT_FRAGSHADER "./font_fragshader.glsl"
#define BOX_VERSHADER "./box_vertshader.glsl"