Dicewars-Siedler/src/engine/core/gui/uiComponent/UiImage.h
2026-02-12 10:37:29 +01:00

24 lines
448 B
C++

//
// Created by sebastian on 10.02.26.
//
#ifndef DICEWARS_SIEDLER_UIIMAGE_H
#define DICEWARS_SIEDLER_UIIMAGE_H
#include "UiComponent.h"
class UiImage : public UiComponent {
public:
UiImage(GLuint textureID, const LayoutStyle& style) : textureID(textureID), UiComponent(style) {
};
protected:
void onCollectRenderData(UiRenderBundle& renderBundle) override;
private:
GLuint textureID;
};
#endif //DICEWARS_SIEDLER_UIIMAGE_H