#ifndef TEXTURE_H #define TEXTURE_H #include #include #include class Texture { public: Texture(const char* path); Texture(const Texture& orig); virtual ~Texture(); void bind(); bool isLoaded(); private: bool load(const char* path); bool load(const char* path, FILE* file); void initGL(); bool loaded = false; unsigned int width = 0; unsigned int height = 0; unsigned int* data = nullptr; static GLuint boundTexture; GLuint texture = 0; }; #endif