Texture.h 537 B

1234567891011121314151617181920212223242526
  1. #ifndef TEXTURE_H
  2. #define TEXTURE_H
  3. #include <GL/glew.h>
  4. #include "utils/Types.h"
  5. class Texture final {
  6. public:
  7. Texture();
  8. ~Texture();
  9. Texture(const Texture& other) = delete;
  10. Texture(Texture&& other) = delete;
  11. Texture& operator=(const Texture& other) = delete;
  12. Texture& operator=(Texture&& other) = delete;
  13. void setRGBAData(int width, int height, const u32* data);
  14. void setRGBFloatData(int width, int height, const float* data);
  15. void bind() const;
  16. private:
  17. GLuint texture;
  18. };
  19. #endif