#ifndef TEXTURE_H #define TEXTURE_H #include #include "gaming-core/utils/Color.h" class Texture final { GLuint texture; public: enum Mode { NEAREST, LINEAR }; Texture(Mode mode = NEAREST); ~Texture(); Texture(const Texture& other) = delete; Texture(Texture&& other) = delete; Texture& operator=(const Texture& other) = delete; Texture& operator=(Texture&& other) = delete; void setColorData(int width, int height, const Color4* data); void setColorData(int width, int height, const Color3* data); void setColorData(int width, int height, const Color2* data); void setColorData(int width, int height, const Color1* data); void setRGBFloatData(int width, int height, const float* data); void bind(int index) const; }; #endif