skybocks
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
#ifndef CubemapTexture_h__
|
||||
#define CubemapTexture_h__
|
||||
|
||||
#include "OpenGL.h"
|
||||
#include "glerror.h"
|
||||
#include <SOIL.h>
|
||||
|
||||
#include "logging.h"
|
||||
|
||||
class CubemapTexture
|
||||
{
|
||||
public:
|
||||
CubemapTexture() { }
|
||||
CubemapTexture(
|
||||
char* posXFile,
|
||||
char* negXFile,
|
||||
char* posYFile,
|
||||
char* negYFile,
|
||||
char* posZFile,
|
||||
char* negZFile);
|
||||
~CubemapTexture();
|
||||
|
||||
void Load();
|
||||
void Bind(GLenum textureSlot);
|
||||
|
||||
private:
|
||||
char* m_TextureFiles[6];
|
||||
GLuint m_Texture;
|
||||
};
|
||||
|
||||
#endif // CubemapTexture_h__
|
||||
Reference in New Issue
Block a user