NoiseTexture.h 359 B

12345678910111213141516171819202122
  1. #ifndef NOISETEXTURE_H
  2. #define NOISETEXTURE_H
  3. #include <GL/glew.h>
  4. #include <GLFW/glfw3.h>
  5. #include "client/rendering/wrapper/Texture.h"
  6. #include "common/utils/Types.h"
  7. class NoiseTexture final {
  8. public:
  9. NoiseTexture(uint width, uint height);
  10. void bind(uint index) const;
  11. private:
  12. float getRandom() const;
  13. Texture texture;
  14. };
  15. #endif