4c081d0e1c
Using Artistic Style (http://astyle.sourceforge.net/) Options: --style=allman --indent=tab --keep-one-line-blocks --align-pointer=type --align-reference=name
27 lines
461 B
C++
Executable File
27 lines
461 B
C++
Executable File
#ifndef CubemapTexture_h__
|
|
#define CubemapTexture_h__
|
|
|
|
#include <SOIL.h>
|
|
|
|
class CubemapTexture
|
|
{
|
|
public:
|
|
CubemapTexture(
|
|
std::string posXFile,
|
|
std::string negXFile,
|
|
std::string posYFile,
|
|
std::string negYFile,
|
|
std::string posZFile,
|
|
std::string negZFile);
|
|
~CubemapTexture();
|
|
|
|
void Load();
|
|
void Bind(GLenum textureSlot);
|
|
|
|
private:
|
|
bool m_Loaded;
|
|
GLuint m_Texture;
|
|
std::string m_TextureFiles[6];
|
|
};
|
|
|
|
#endif // CubemapTexture_h__
|