diff options
Diffstat (limited to 'src/gui/kernel/qsurfaceformat.h')
-rw-r--r-- | src/gui/kernel/qsurfaceformat.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gui/kernel/qsurfaceformat.h b/src/gui/kernel/qsurfaceformat.h index 6e89aa667b..f305edbcc9 100644 --- a/src/gui/kernel/qsurfaceformat.h +++ b/src/gui/kernel/qsurfaceformat.h @@ -49,14 +49,16 @@ QT_BEGIN_NAMESPACE QT_MODULE(Gui) -class QGuiGLContext; +class QOpenGLContext; class QSurfaceFormatPrivate; class Q_GUI_EXPORT QSurfaceFormat { public: enum FormatOption { - StereoBuffers = 0x0001 + StereoBuffers = 0x0001, + DebugContext = 0x0002, + DeprecatedFunctions = 0x0004 }; Q_DECLARE_FLAGS(FormatOptions, FormatOption) @@ -105,6 +107,12 @@ public: void setProfile(OpenGLContextProfile profile); OpenGLContextProfile profile() const; + void setMajorVersion(int majorVersion); + int majorVersion() const; + + void setMinorVersion(int minorVersion); + int minorVersion() const; + bool stereo() const; void setStereo(bool enable); |