Add TTF support

This commit is contained in:
2025-12-08 21:16:20 +08:00
parent f8f397af50
commit 7067214c34
5 changed files with 61 additions and 2 deletions

View File

@@ -14,7 +14,10 @@ bool GameApplication::initialize() {
SDL_Log("SDL初始化失败: %s", SDL_GetError());
return false;
}
if (!TTF_Init()) {
SDL_Log("无法初始化 SDL_ttf: %s", SDL_GetError());
return false;
}
m_inputManager = std::make_unique<InputManager>();
m_windowManager = std::make_unique<WindowManager>();

View File

@@ -5,7 +5,7 @@
#include "scenes/base/SceneManager.h"
#include "input/InputManager.h"
#include "utils/Config.h"
#include <SDL3_ttf/SDL_ttf.h>
class GameApplication {
private: