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:
|
|
|
|
GameBgImage(const std::string & filename, GuiImageData *preloadImage);
|
|
|
|
virtual ~GameBgImage();
|
|
|
|
|
|
|
|
void setAlphaFadeOut(const glm::vec4 & a) {
|
|
|
|
alphaFadeOut = a;
|
|
|
|
}
|
|
|
|
|
|
|
|
void draw(CVideo *pVideo);
|
|
|
|
private:
|
|
|
|
glm::mat4 identity;
|
|
|
|
glm::vec4 alphaFadeOut;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _GAME_BG_IMAGE_H_
|