#ifndef TEXTURE_H #define TEXTURE_H #include #include #include #include "common/utils/Types.h" class Texture final { public: Texture(const char* path); ~Texture(); Texture(const Texture& other) = delete; Texture(Texture&& other) = delete; Texture& operator=(const Texture& other) = delete; Texture& operator=(Texture&& other) = delete; void bind(uint index) const; private: void load(const char* path); bool load(const char* path, FILE* file); void initGL(); u32 width; u32 height; u32* data; GLuint texture; }; #endif