2017-10-29 10:28:14 +01:00
|
|
|
#ifndef _GRID_BACKGROUND_H_
|
|
|
|
#define _GRID_BACKGROUND_H_
|
|
|
|
|
2018-06-21 20:44:58 +02:00
|
|
|
#include <gui/GuiImage.h>
|
2017-10-29 10:28:14 +01:00
|
|
|
|
2018-06-21 20:44:58 +02:00
|
|
|
class GridBackground : public GuiImage {
|
2017-10-29 10:28:14 +01:00
|
|
|
public:
|
|
|
|
GridBackground(GuiImageData *imgData);
|
2020-08-13 12:38:07 +02:00
|
|
|
|
2017-10-29 10:28:14 +01:00
|
|
|
virtual ~GridBackground();
|
|
|
|
|
2020-08-13 12:38:07 +02:00
|
|
|
void setColorIntensity(const glm::vec4 &color) {
|
2017-10-29 10:28:14 +01:00
|
|
|
colorIntensity = color;
|
|
|
|
}
|
2020-08-13 12:38:07 +02:00
|
|
|
|
|
|
|
const glm::vec4 &getColorIntensity() const {
|
2017-10-29 10:28:14 +01:00
|
|
|
return colorIntensity;
|
|
|
|
}
|
2020-08-13 12:38:07 +02:00
|
|
|
|
|
|
|
void setDistanceFadeOut(const float &a) {
|
2017-10-29 10:28:14 +01:00
|
|
|
distanceFadeOut = a;
|
|
|
|
}
|
2020-08-13 12:38:07 +02:00
|
|
|
|
|
|
|
void draw(CVideo *pVideo, const glm::mat4 &modelView);
|
|
|
|
|
2017-10-29 10:28:14 +01:00
|
|
|
private:
|
|
|
|
glm::mat4 m_modelView;
|
|
|
|
glm::vec4 colorIntensity;
|
|
|
|
glm::vec4 alphaFadeOut;
|
|
|
|
float distanceFadeOut;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _GRID_BACKGROUND_H_
|