NoiseTexture.h 622 B

1234567891011121314151617181920212223242526272829303132
  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. {
  8. public:
  9. NoiseTexture(u32 width, u32 height);
  10. ~NoiseTexture();
  11. NoiseTexture(const NoiseTexture& other) = delete;
  12. NoiseTexture(NoiseTexture&& other) = delete;
  13. NoiseTexture& operator=(const NoiseTexture& other) = delete;
  14. NoiseTexture& operator=(NoiseTexture&& other) = delete;
  15. void bind(unsigned int index) const;
  16. private:
  17. float getRandom() const;
  18. u32 width;
  19. u32 height;
  20. GLuint texture = 0;
  21. };
  22. #endif