Added default font and exception throwing to replace some nullptr returns

This commit is contained in:
2021-12-11 12:10:56 -05:00
parent d2826f08fe
commit 10e2b3c538
10 changed files with 62 additions and 22 deletions

View File

@@ -22,12 +22,8 @@
#define DEFAULT_WINDOW_HEIGHT 600
#define DEFAULT_WINDOW_TITLE "RLEngine"
#define DEFAULT_SHOW_FPS false
static const TextRenderDetails DEFAULT_FONT = TextRenderDetails(
"fonts/Consolas-Regular.ttf",
12,
COLOR_WHITE
);
#define DEFAULT_FONT_NAME "Consolas-Regular"
#define DEFAULT_FONT_SIZE 12
struct EngineConfig {
unsigned int target_fps;