Linked against SDL ttf

This commit is contained in:
2023-03-05 23:27:07 +11:00
parent f42ee8b655
commit 14524c261b
7 changed files with 47 additions and 13 deletions

View File

@@ -14,6 +14,7 @@
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>
#include <unistd.h>
#define BOX_API extern
@@ -22,6 +23,7 @@
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#include <windows.h>
#include <crtdbg.h>

View File

@@ -51,6 +51,11 @@ void Box_initEngine() {
fatalError("Failed to initialize SDL2_image");
}
//init SDL_ttf
if (TTF_Init() == -1) {
fatalError("Failed to initialize SDL2_ttf");
}
//init events
Toy_initLiteralDictionary(&engine.symKeyDownEvents);
Toy_initLiteralDictionary(&engine.symKeyUpEvents);