equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtOpenGL module of the Qt Toolkit. |
7 ** This file is part of the QtOpenGL module of the Qt Toolkit. |
8 ** |
8 ** |
109 public: |
109 public: |
110 virtual QPaintEngine* paintEngine() const {return fbo->paintEngine();} |
110 virtual QPaintEngine* paintEngine() const {return fbo->paintEngine();} |
111 virtual QSize size() const {return fbo->size();} |
111 virtual QSize size() const {return fbo->size();} |
112 virtual QGLContext* context() const; |
112 virtual QGLContext* context() const; |
113 virtual QGLFormat format() const {return fboFormat;} |
113 virtual QGLFormat format() const {return fboFormat;} |
|
114 virtual bool alphaRequested() const { return reqAlpha; } |
114 |
115 |
115 void setFBO(QGLFramebufferObject* f, |
116 void setFBO(QGLFramebufferObject* f, |
116 QGLFramebufferObject::Attachment attachment); |
117 QGLFramebufferObject::Attachment attachment); |
117 |
118 |
118 private: |
119 private: |
119 bool wasBound; |
|
120 QGLFramebufferObject* fbo; |
120 QGLFramebufferObject* fbo; |
121 QGLFormat fboFormat; |
121 QGLFormat fboFormat; |
|
122 bool wasBound; |
|
123 bool reqAlpha; |
122 }; |
124 }; |
123 |
125 |
124 class QGLFramebufferObjectPrivate |
126 class QGLFramebufferObjectPrivate |
125 { |
127 { |
126 public: |
128 public: |