Added default font and exception throwing to replace some nullptr returns
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user