Added UI class and UI rendering class

This commit is contained in:
2025-12-11 16:46:54 +08:00
parent 7b098e0542
commit 6637d0f850
15 changed files with 459 additions and 19 deletions

View File

@@ -0,0 +1,22 @@
#pragma once
#include <SDL3/SDL.h>
#include <SDL3_ttf/SDL_ttf.h>
#include "ui/components/Button.h"
#include "ui/base/UIRenderData.h"
#include <memory>
#include <vector>
class GameUIManager {
private:
std::vector<std::unique_ptr<Button>> m_buttons;
UIRenderData m_uiRenderData;
public:
GameUIManager();
~GameUIManager();
void init();
const UIRenderData& getUIRenderData();
// 收集渲染数据
void CollectRenderData();
};