bRenderer
Download
Tutorial
Guides
bRenderer
Download
Tutorial
Guides
Basic Renderer
Main Page
Namespaces
Classes
Files
File List
File Members
bRenderer
headers
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) */
Texture.h
CubeMap::bind
virtual void bind(GLint texUnit=GL_TEXTURE0) override
Binds the cube map.
Definition:
CubeMap.cpp:25
CubeMap
The cube map consists of six textures arranged in the shape of a cube.
Definition:
CubeMap.h:10
Texture::deleteTexture
virtual void deleteTexture()
Delete the OpenGL texture.
Definition:
Texture.h:54
CubeMap::~CubeMap
virtual ~CubeMap()
Virtual destructor.
Definition:
CubeMap.h:24
Texture
An image that can be applied to a surface of a drawable object.
Definition:
Texture.h:13
CubeMap::CubeMap
CubeMap(const std::vector< TextureData > &data)
Constructor.
Definition:
CubeMap.cpp:4
CubeMapPtr
std::shared_ptr< CubeMap > CubeMapPtr
Definition:
CubeMap.h:33