2017-10-29 10:28:14 +01:00
|
|
|
#ifndef _GAME_BG_IMAGE_H_
|
|
|
|
#define _GAME_BG_IMAGE_H_
|
|
|
|
|
2018-06-21 20:44:58 +02:00
|
|
|
#include <gui/GuiImageAsync.h>
|
2019-08-14 23:24:55 +02:00
|
|
|
#include <gui/video/shaders/Shader3D.h>
|
2017-10-29 10:28:14 +01:00
|
|
|
|
2018-06-21 20:44:58 +02:00
|
|
|
class GameBgImage : public GuiImageAsync {
|
2017-10-29 10:28:14 +01:00
|
|
|
public:
|
2020-08-13 12:38:07 +02:00
|
|
|
GameBgImage(const std::string &filename, GuiImageData *preloadImage);
|
|
|
|
|
2017-10-29 10:28:14 +01:00
|
|
|
virtual ~GameBgImage();
|
|
|
|
|
2020-08-13 12:38:07 +02:00
|
|
|
void setAlphaFadeOut(const glm::vec4 &a) {
|
2017-10-29 10:28:14 +01:00
|
|
|
alphaFadeOut = a;
|
|
|
|
}
|
|
|
|
|
|
|
|
void draw(CVideo *pVideo);
|
2020-08-13 12:38:07 +02:00
|
|
|
|
2017-10-29 10:28:14 +01:00
|
|
|
private:
|
|
|
|
glm::mat4 identity;
|
|
|
|
glm::vec4 alphaFadeOut;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _GAME_BG_IMAGE_H_
|