yupplemayham/YuppleMayham/graphics/texture.h
2024-06-21 16:59:06 -04:00

22 lines
No EOL
346 B
C++

#ifndef _H_TEXTURE_H
#define _H_TEXTURE_H
class Texture
{
public:
Texture() {}
bool loadTexture(const char* imagePath);
void bind();
const int getWidth() const { return textureWidth; }
const int getHeight() const { return textureHeight; }
~Texture();
private:
unsigned ID = 0;
int textureWidth = 0;
int textureHeight = 0;
};
#endif