NoiseTexture.h 601 B

123456789101112131415161718192021222324252627282930
  1. #ifndef NOISETEXTURE_H
  2. #define NOISETEXTURE_H
  3. #include <GL/glew.h>
  4. #include <GLFW/glfw3.h>
  5. #include "common/utils/Types.h"
  6. class NoiseTexture final {
  7. public:
  8. NoiseTexture(u32 width, u32 height);
  9. ~NoiseTexture();
  10. NoiseTexture(const NoiseTexture& other) = delete;
  11. NoiseTexture(NoiseTexture&& other) = delete;
  12. NoiseTexture& operator=(const NoiseTexture& other) = delete;
  13. NoiseTexture& operator=(NoiseTexture&& other) = delete;
  14. void bind(unsigned int index) const;
  15. private:
  16. float getRandom() const;
  17. u32 width;
  18. u32 height;
  19. GLuint texture = 0;
  20. };
  21. #endif