CubeMap Class Reference

The cube map consists of six textures arranged in the shape of a cube. More...

#include <CubeMap.h>

Inherits Texture.

Public Member Functions

 CubeMap (const std::vector< TextureData > &data)
 Constructor. More...
 
virtual ~CubeMap ()
 Virtual destructor. More...
 
virtual void bind (GLint texUnit=GL_TEXTURE0) override
 Binds the cube map. More...
 
- Public Member Functions inherited from Texture
 Texture ()
 Constructor. More...
 
 Texture (const TextureData &data)
 Constructor. More...
 
 Texture (GLuint textureID)
 Constructor. More...
 
virtual ~Texture ()
 Virtual destructor. More...
 
GLuint getTextureID ()
 Returns texture id. More...
 
virtual void deleteTexture ()
 Delete the OpenGL texture. More...
 

Detailed Description

The cube map consists of six textures arranged in the shape of a cube.

Author
Benjamin Buergisser

Constructor & Destructor Documentation

CubeMap::CubeMap ( const std::vector< TextureData > &  data)

Constructor.

Parameters
[in]dataThe texture data to be used (size needs to be 6) in the following order: left, right, bottom, top, front, back
virtual CubeMap::~CubeMap ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

void CubeMap::bind ( GLint  texUnit = GL_TEXTURE0)
overridevirtual

Binds the cube map.

Parameters
[in]texUnitSpecifies which texture unit to bind it to

Reimplemented from Texture.