Dicewars-Siedler/src/engine/core/gui/uiComponent/UiRenderBundle.h
2026-02-11 22:36:03 +01:00

40 lines
761 B
C++

//
// Created by sebastian on 10.02.26.
//
#ifndef DICEWARS_SIEDLER_UIRENDERBUNDLE_H
#define DICEWARS_SIEDLER_UIRENDERBUNDLE_H
#include <memory>
#include <vector>
class UiText;
#include "../../../renderer/model/GUITexture.h"
class UiRenderBundle {
public:
void addText(UiText* text) {
texts.push_back(text);
}
void addGUITexture(const std::shared_ptr<GUITexture>& guiTexture) {
guiImages.push_back(guiTexture);
}
std::vector<std::shared_ptr<GUITexture>> getGUITextures() {
return guiImages;
}
std::vector<UiText*> getTexts() {
return texts;
}
private:
std::vector<std::shared_ptr<GUITexture>> guiImages;
std::vector<UiText*> texts;
};
#endif //DICEWARS_SIEDLER_UIRENDERBUNDLE_H