summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/ios/qioswindow.h
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>2012-12-10 17:49:53 +0100
committerTor Arne Vestbø <tor.arne.vestbo@digia.com>2013-02-27 23:55:51 +0100
commit21965187096f8bde7866b05459444793e1a6c1b1 (patch)
tree099a58bd0cc98be844ffb4009040055d334786e4 /src/plugins/platforms/ios/qioswindow.h
parentd059866eb43a7415dd786a2bcba14f729d938675 (diff)
iOS: Update GL render buffers when the accociated window is resized
We keep track of the with and height of the FBO's buffers, and update their storage if the window size has changed since last time. Change-Id: I97788b69e7067a5b5b9f28e8498cf1bc5d2cf6ea Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Diffstat (limited to 'src/plugins/platforms/ios/qioswindow.h')
-rw-r--r--src/plugins/platforms/ios/qioswindow.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/platforms/ios/qioswindow.h b/src/plugins/platforms/ios/qioswindow.h
index 2a762d2bdc..4c55249046 100644
--- a/src/plugins/platforms/ios/qioswindow.h
+++ b/src/plugins/platforms/ios/qioswindow.h
@@ -88,12 +88,21 @@ public:
void handleContentOrientationChange(Qt::ScreenOrientation orientation);
GLuint framebufferObject(const QIOSContext &context) const;
+ GLuint colorRenderbuffer(const QIOSContext &context) const;
EAGLView *nativeView() const { return m_view; }
private:
EAGLView *m_view;
QRect m_requestedGeometry;
+
+ mutable struct GLData {
+ GLuint framebufferObject;
+ GLuint colorRenderbuffer;
+ GLuint depthRenderbuffer;
+ GLint renderbufferWidth;
+ GLint renderbufferHeight;
+ } m_glData;
};
QT_END_NAMESPACE