mirror of
https://github.com/zhenyan121/SporeBG-Conid.git
synced 2026-04-10 14:24:10 +08:00
Added UI class and UI rendering class
This commit is contained in:
22
src/ui/managers/GameUIManager.h
Normal file
22
src/ui/managers/GameUIManager.h
Normal 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();
|
||||
};
|
||||
Reference in New Issue
Block a user