| 123456789101112131415161718192021222324252627282930313233 | 
							- #ifndef TEXTURE_H
 
- #define TEXTURE_H
 
- #include <GL/glew.h>
 
- #include <GLFW/glfw3.h>
 
- #include <iostream>
 
- class Texture
 
- {
 
- public:
 
-     Texture(const char* path);
 
-     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
 
 
  |