diff options
Diffstat (limited to 'src/gui/kernel/qwindowformat_qpa.h')
-rw-r--r-- | src/gui/kernel/qwindowformat_qpa.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/kernel/qwindowformat_qpa.h b/src/gui/kernel/qwindowformat_qpa.h index a1fdc9f576..9bc2ccdfaa 100644 --- a/src/gui/kernel/qwindowformat_qpa.h +++ b/src/gui/kernel/qwindowformat_qpa.h @@ -49,6 +49,7 @@ QT_BEGIN_NAMESPACE QT_MODULE(Gui) +class QWindowContext; class QWindowFormatPrivate; class Q_GUI_EXPORT QWindowFormat @@ -60,15 +61,6 @@ public: }; Q_DECLARE_FLAGS(FormatOptions, FormatOption) - enum ColorFormat { - InvalidColorFormat, - RGB565, - RGBA5658, - RGBA5551, - RGB888, - RGBA8888 - }; - enum SwapBehavior { DefaultSwapBehavior, SingleBuffer, @@ -94,20 +86,28 @@ public: void setStencilBufferSize(int size); int stencilBufferSize() const; + void setRedBufferSize(int size); + int redBufferSize() const; + void setGreenBufferSize(int size); + int greenBufferSize() const; + void setBlueBufferSize(int size); + int blueBufferSize() const; + void setAlphaBufferSize(int size); + int alphaBufferSize() const; + void setSamples(int numSamples); int samples() const; void setSwapBehavior(SwapBehavior behavior); SwapBehavior swapBehavior() const; - void setColorFormat(ColorFormat format); - ColorFormat colorFormat() const; + bool hasAlpha() const; void setProfile(OpenGLContextProfile profile); OpenGLContextProfile profile() const; - void setSharedContext(QPlatformGLContext *context); - QPlatformGLContext *sharedGLContext() const; + void setSharedContext(QWindowContext *context); + QWindowContext *sharedContext() const; bool stereo() const; void setStereo(bool enable); |