SQCSimulator2023/SQCSim2021/texture.h
2023-09-30 14:46:54 -04:00

24 lines
388 B
C++

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