CalcMySky  v0.3.1
GLSLCosineQualityChecker.hpp
1 #ifndef INCLUDE_ONCE_3D249CBD_E858_4DD8_B420_066C5821EF30
2 #define INCLUDE_ONCE_3D249CBD_E858_4DD8_B420_066C5821EF30
3 
4 #include <memory>
5 #include <QOpenGLShaderProgram>
6 
7 class QOpenGLFunctions_3_3_Core;
9 {
10  static constexpr int width = 128, height = 1;
11 
12  QOpenGLFunctions_3_3_Core& gl;
13  GLuint vao, vbo;
14  GLuint texFBO;
15  GLuint inputTexture;
16  std::unique_ptr<QOpenGLShaderProgram> program;
17  GLuint fbo;
18 
19  void loadShaders();
20  void setupBuffers();
21  void setupRenderTarget(int width, int height);
22  void setupInputTextures(int width, int height);
23 public:
24  GLSLCosineQualityChecker(QOpenGLFunctions_3_3_Core& gl);
25  bool isGood();
27 };
28 
29 #endif
Definition: GLSLCosineQualityChecker.hpp:8