The EnvironmentMap is a CubeMap based rendering technique for showing some scene enviroment.
More...
#include <environmentmap.h>
The EnvironmentMap is a CubeMap based rendering technique for showing some scene enviroment.
EnvironmentMap::EnvironmentMap |
( |
QOpenGLFunctions & |
gl, |
|
|
QString |
cubeMapPrefix, |
|
|
QObject * |
parent = 0 |
|
) |
| |
Creates a new EnvironmentMap. The specified cube map textures are loaded immediately.
- Parameters
-
gl | The QOpenGLFunctions which are used for every gl-call |
cubeMapPrefix | The name of cubemap that should be shown. |
parent | QObject-parent |
EnvironmentMap::~EnvironmentMap |
( |
| ) |
|
uint EnvironmentMap::cubeMapTexture |
( |
| ) |
|
OpenGL texture that is used for drawing.
- Returns
void EnvironmentMap::initialize |
( |
| ) |
|
|
protected |
void EnvironmentMap::initializeShaderProgram |
( |
| ) |
|
|
protected |
void EnvironmentMap::paint |
( |
const Camera & |
camera | ) |
|
Paints environmentmap into the scene using a ScreenAlignedQuad.
- Parameters
-
camera | The camera which is used to render the scene |
void EnvironmentMap::update |
( |
QString |
newCubeMapPrefix | ) |
|
QOpenGLFunctions& EnvironmentMap::m_gl |
|
protected |
bool EnvironmentMap::m_initialized |
|
protected |
QOpenGLShaderProgram* EnvironmentMap::m_shaderProgram |
|
protected |
The documentation for this class was generated from the following files: