Linked against SDL ttf
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user