The CubeMap class loads cubemap textures and provides them as OpenGL-texture.
More...
#include <cubemap.h>
The CubeMap class loads cubemap textures and provides them as OpenGL-texture.
CubeMap::CubeMap |
( |
QOpenGLFunctions & |
gl, |
|
|
QString |
cubeMapPrefix, |
|
|
QObject * |
parent = 0 |
|
) |
| |
Creates a new CubeMap and loads required textures.
- Parameters
-
gl | QOpenGLFunctions that are used for all gl-calls |
cubeMapPrefix | The name of the cubemap. This is the filename of textures without fileextension and face suffix. |
parent | QObject-parent |
uint CubeMap::cubeMapTexture |
( |
| ) |
|
OpenGL texture reference.
- Returns
void CubeMap::initialize |
( |
| ) |
|
|
protected |
void CubeMap::update |
( |
QString |
newCubeMapPrefix | ) |
|
Replaces current texture with new specified texture.
- Parameters
-
newCubeMapPrefix | The name of the new cubemap. This is the filename of textures without fileextension and face suffix. |
QString CubeMap::m_cubeMapPrefix |
|
protected |
QOpenGLFunctions& CubeMap::m_gl |
|
protected |
The documentation for this class was generated from the following files: