#pragma once #include "peripherals.h" BEGIN_NAMESPACE class texture { public: texture(int width, int height, uint8_t *buffer); texture(GLuint id, int width, int height); virtual ~texture(); int get_width() const; int get_height() const; GLuint get_id() const { return id; } void use() const; void unuse() const; private: int width; int height; bool destroyable; GLuint id = 0; }; END_NAMESPACE