1 #ifndef ENVIRONMENTMAP_H
2 #define ENVIRONMENTMAP_H
6 class QOpenGLFunctions;
7 class QOpenGLShaderProgram;
26 EnvironmentMap(QOpenGLFunctions &gl, QString cubeMapPrefix, QObject *parent = 0);
40 void update(QString newCubeMapPrefix);
60 #endif // ENVIRONMENTMAP_H
void update(QString newCubeMapPrefix)
Replace current CubeMap with new one specified by name.
Definition: environmentmap.cpp:56
QOpenGLShaderProgram * m_shaderProgram
Definition: environmentmap.h:57
void initializeShaderProgram()
Definition: environmentmap.cpp:76
The EnvironmentMap is a CubeMap based rendering technique for showing some scene enviroment.
Definition: environmentmap.h:16
The CubeMap class loads cubemap textures and provides them as OpenGL-texture.
Definition: cubemap.h:11
ScreenAlignedQuad * m_quad
Definition: environmentmap.h:56
The Camera class provides view and perspective projection matrices. Additional the viewport of camera...
Definition: camera.h:16
uint cubeMapTexture()
OpenGL texture that is used for drawing.
Definition: environmentmap.cpp:61
CubeMap * m_cubeMap
Definition: environmentmap.h:53
void initialize()
Definition: environmentmap.cpp:66
bool m_initialized
Definition: environmentmap.h:54
~EnvironmentMap()
Definition: environmentmap.cpp:21
The ScreenAlignedQuad class encapsulates the drawing of a screen aligned quad.
Definition: screenalignedquad.h:10
void paint(const Camera &camera)
Paints environmentmap into the scene using a ScreenAlignedQuad.
Definition: environmentmap.cpp:28
EnvironmentMap(QOpenGLFunctions &gl, QString cubeMapPrefix, QObject *parent=0)
Creates a new EnvironmentMap. The specified cube map textures are loaded immediately.
Definition: environmentmap.cpp:10
QOpenGLFunctions & m_gl
Definition: environmentmap.h:55