diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2012-02-03 11:17:29 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-08 14:36:58 +0100 |
commit | 1826294669b1224af69917efc3c387aeae2acdf1 (patch) | |
tree | f5fee198ab69538185558095c9aa83150f637ad0 /src/quick/scenegraph/coreapi/qsgrenderer.cpp | |
parent | f5a43c09dbbf0caece4976303250a7582f6037ec (diff) |
Added QQuickCanvas::setRenderTarget(uint fbo, const QSize &size)
This allows to hook in non-QOpenGLFrameBufferObject FBO's also
Change-Id: I8a2f8f7f15d5a92262bdbb0507b232d7c11fdf25
Reviewed-by: Jani Hautakangas <jani.hautakangas@nokia.com>
Diffstat (limited to 'src/quick/scenegraph/coreapi/qsgrenderer.cpp')
-rw-r--r-- | src/quick/scenegraph/coreapi/qsgrenderer.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgrenderer.cpp b/src/quick/scenegraph/coreapi/qsgrenderer.cpp index 56693ad58f..6a894ee6c2 100644 --- a/src/quick/scenegraph/coreapi/qsgrenderer.cpp +++ b/src/quick/scenegraph/coreapi/qsgrenderer.cpp @@ -93,6 +93,17 @@ void QSGBindableFbo::bind() const m_fbo->bind(); } +QSGBindableFboId::QSGBindableFboId(GLuint id) + : m_id(id) +{ +} + + +void QSGBindableFboId::bind() const +{ + QOpenGLContext::currentContext()->functions()->glBindFramebuffer(GL_FRAMEBUFFER, m_id); +} + /*! \class QSGRenderer \brief The renderer class is the abstract baseclass use for rendering the |