mirror of
https://github.com/zhenyan121/SporeBG-Conid.git
synced 2026-04-10 06:14:08 +08:00
Add TTF support
This commit is contained in:
@@ -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>();
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user