Added UI RenderTexture

This commit is contained in:
2025-12-25 13:06:30 +08:00
parent 03cd5d83d1
commit 10d9988f99
3 changed files with 50 additions and 12 deletions

View File

@@ -60,6 +60,7 @@ SDL_AppResult GameApplication::handleInputEvent(SDL_Event* event) {
m_windowManager->setFullscreen(input.isFullscreen);
// 改变窗口时清理旧的缓存
if (event->type == SDL_EVENT_WINDOW_PIXEL_SIZE_CHANGED) {
m_windowManager->onWindowResize();
m_textRenderer->clearCache();
}