26 lines
359 B
C++
26 lines
359 B
C++
#ifndef Texture_h__
|
|
#define Texture_h__
|
|
|
|
#include "../OpenGL.h"
|
|
#include "BaseTexture.h"
|
|
#include "PNG.h"
|
|
|
|
class Texture : public BaseTexture
|
|
{
|
|
friend class ResourceManager;
|
|
|
|
protected:
|
|
Texture(std::string path);
|
|
|
|
public:
|
|
~Texture();
|
|
|
|
void Bind(GLenum textureUnit = GL_TEXTURE0);
|
|
|
|
GLuint m_Texture = 0;
|
|
unsigned char* Data = nullptr;
|
|
|
|
};
|
|
|
|
#endif
|