OpenGL.hpp
1 #pragma once
2 
3 #include <QSurfaceFormat>
4 #if __has_include(<private/qshader_p.h>)
5 #include <private/qshader_p.h>
6 #endif
7 
8 #include <score_lib_base_export.h>
9 
10 namespace score
11 {
12 struct SCORE_LIB_BASE_EXPORT GLCapabilities
13 {
14 public:
16 
17  int major{};
18  int minor{};
19  int shaderVersion{};
20  QSurfaceFormat::RenderableType type{};
21 
22 #if __has_include(<private/qshader_p.h>)
23  QShaderVersion qShaderVersion;
24 #endif
25 
26  void setupFormat(QSurfaceFormat& fmt);
27 
28 private:
29  int glShaderVersion() noexcept;
30 };
31 }
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: OpenGL.hpp:13