24 lines
364 B
C
24 lines
364 B
C
|
#ifndef TEXTURE_H__
|
||
|
#define TEXTURE_H__
|
||
|
|
||
|
#include "define.h"
|
||
|
#include <IL/il.h>
|
||
|
#include <string>
|
||
|
|
||
|
class Texture
|
||
|
{
|
||
|
public:
|
||
|
Texture(const std::string& filename = "");
|
||
|
~Texture();
|
||
|
|
||
|
bool Load(const std::string& filename);
|
||
|
bool IsValid() const;
|
||
|
void Bind() const;
|
||
|
|
||
|
private:
|
||
|
GLuint m_textureId;
|
||
|
bool m_isValid;
|
||
|
};
|
||
|
|
||
|
#endif // TEXTURE_H__
|