diff options
Diffstat (limited to 'src/gui/opengl/qopenglframebufferobject.h')
-rw-r--r-- | src/gui/opengl/qopenglframebufferobject.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/opengl/qopenglframebufferobject.h b/src/gui/opengl/qopenglframebufferobject.h index b7c38479ff9..8c3895b2934 100644 --- a/src/gui/opengl/qopenglframebufferobject.h +++ b/src/gui/opengl/qopenglframebufferobject.h @@ -56,7 +56,7 @@ QT_MODULE(Gui) class QOpenGLFramebufferObjectPrivate; class QOpenGLFramebufferObjectFormat; -class Q_GUI_EXPORT QOpenGLFramebufferObject : public QPaintDevice +class Q_GUI_EXPORT QOpenGLFramebufferObject { Q_DECLARE_PRIVATE(QOpenGLFramebufferObject) public: @@ -92,6 +92,9 @@ public: bool bind(); bool release(); + int width() const { return size().width(); } + int height() const { return size().width(); } + GLuint texture() const; QSize size() const; QImage toImage() const; @@ -110,10 +113,6 @@ public: GLbitfield buffers = GL_COLOR_BUFFER_BIT, GLenum filter = GL_NEAREST); -protected: - int metric(PaintDeviceMetric metric) const; - int devType() const { return QInternal::FramebufferObject; } - private: Q_DISABLE_COPY(QOpenGLFramebufferObject) QScopedPointer<QOpenGLFramebufferObjectPrivate> d_ptr; |