24 lines
448 B
C++
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
|