CubeMap.h
Go to the documentation of this file.
1 #ifndef B_CUBE_MAP_H
2 #define B_CUBE_MAP_H
3 
4 #include <vector>
5 #include "Texture.h"
6 
10 class CubeMap : public Texture
11 {
12 public:
13 
14  /* Functions */
15 
20  CubeMap(const std::vector<TextureData> &data);
21 
24  virtual ~CubeMap() { deleteTexture(); }
25 
29  virtual void bind(GLint texUnit = GL_TEXTURE0) override;
30 
31 };
32 
33 typedef std::shared_ptr< CubeMap > CubeMapPtr;
34 
35 #endif /* defined(B_CUBE_MAP_H) */
virtual void bind(GLint texUnit=GL_TEXTURE0) override
Binds the cube map.
Definition: CubeMap.cpp:25
The cube map consists of six textures arranged in the shape of a cube.
Definition: CubeMap.h:10
virtual void deleteTexture()
Delete the OpenGL texture.
Definition: Texture.h:54
virtual ~CubeMap()
Virtual destructor.
Definition: CubeMap.h:24
An image that can be applied to a surface of a drawable object.
Definition: Texture.h:13
CubeMap(const std::vector< TextureData > &data)
Constructor.
Definition: CubeMap.cpp:4
std::shared_ptr< CubeMap > CubeMapPtr
Definition: CubeMap.h:33