Gem Illuminator
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CubeMap Class Reference

The CubeMap class loads cubemap textures and provides them as OpenGL-texture. More...

#include <cubemap.h>

Inheritance diagram for CubeMap:

Public Member Functions

 CubeMap (QOpenGLFunctions &gl, QString cubeMapPrefix, QObject *parent=0)
 Creates a new CubeMap and loads required textures. More...
 
virtual ~CubeMap ()
 
void update (QString newCubeMapPrefix)
 Replaces current texture with new specified texture. More...
 
uint cubeMapTexture ()
 OpenGL texture reference. More...
 

Protected Member Functions

void initialize ()
 

Protected Attributes

uint m_cubeMap
 
QOpenGLFunctions & m_gl
 
QString m_cubeMapPrefix
 

Detailed Description

The CubeMap class loads cubemap textures and provides them as OpenGL-texture.

Constructor & Destructor Documentation

CubeMap::CubeMap ( QOpenGLFunctions &  gl,
QString  cubeMapPrefix,
QObject *  parent = 0 
)

Creates a new CubeMap and loads required textures.

Parameters
glQOpenGLFunctions that are used for all gl-calls
cubeMapPrefixThe name of the cubemap. This is the filename of textures without fileextension and face suffix.
parentQObject-parent
CubeMap::~CubeMap ( )
virtual

Member Function Documentation

uint CubeMap::cubeMapTexture ( )

OpenGL texture reference.

Returns
void CubeMap::initialize ( )
protected
void CubeMap::update ( QString  newCubeMapPrefix)

Replaces current texture with new specified texture.

Parameters
newCubeMapPrefixThe name of the new cubemap. This is the filename of textures without fileextension and face suffix.

Member Data Documentation

uint CubeMap::m_cubeMap
protected
QString CubeMap::m_cubeMapPrefix
protected
QOpenGLFunctions& CubeMap::m_gl
protected

The documentation for this class was generated from the following files: