Texture3D.h 441 B

123456789101112131415161718192021
  1. #ifndef TEXTURE_3D_H
  2. #define TEXTURE_3D_H
  3. #include <GL/glew.h>
  4. class Texture3D final {
  5. GLuint texture;
  6. public:
  7. Texture3D();
  8. ~Texture3D();
  9. Texture3D(const Texture3D&) = delete;
  10. Texture3D(Texture3D&&) = delete;
  11. Texture3D& operator=(const Texture3D&) = delete;
  12. Texture3D& operator=(Texture3D&&) = delete;
  13. void setData(int width, int height, int depth, void* data);
  14. void bindTo(int unit) const;
  15. };
  16. #endif