|
Basic Renderer
|
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... | |
The cube map consists of six textures arranged in the shape of a cube.
| CubeMap::CubeMap | ( | const std::vector< TextureData > & | data | ) |
Constructor.
| [in] | data | The texture data to be used (size needs to be 6) in the following order: left, right, bottom, top, front, back |
|
inlinevirtual |
Virtual destructor.
|
overridevirtual |
Binds the cube map.
| [in] | texUnit | Specifies which texture unit to bind it to |
Reimplemented from Texture.