mirror of
https://github.com/wiiu-env/libgui.git
synced 2024-11-14 20:35:09 +01:00
25 lines
485 B
C++
25 lines
485 B
C++
#ifndef _GAME_BG_IMAGE_H_
|
|
#define _GAME_BG_IMAGE_H_
|
|
|
|
#include <gui/GuiImageAsync.h>
|
|
#include <gui/video/shaders/Shader3D.h>
|
|
|
|
class GameBgImage : public GuiImageAsync {
|
|
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_
|