diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-08-22 10:49:28 +0200 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-08-29 10:25:24 +0200 |
commit | 6e28e8441b698c3397c2c78125c877f2e9867cb1 (patch) | |
tree | 1e3ad0e43cb775854835817cd04bdc8b5e047e15 /src/gui/kernel/qsurfaceformat.h | |
parent | aaa4a26f82f99fa8724841eba91bad029306e0ce (diff) |
Copy core GL functionality to QtGui with QGL -> QOpenGL naming.
Change-Id: Ibc989afa4a30dd184d41d1a1cd89f97196e48855
Reviewed-on: http://codereview.qt.nokia.com/3710
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
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); |