Results 1 to 11 of 11

Thread: OpenGL Framebuffer

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    70
    Thanked 59 Times in 57 Posts

    Default OpenGL Framebuffer

    Hi,

    I just copied this code from "framebufferobject" example.

    Qt Code:
    1. if (!QGLFormat::hasOpenGL() || !QGLFramebufferObject::hasOpenGLFramebufferObjects()) {
    2. QMessageBox::information(0, "OpenGL framebuffer objects",
    3. "This system does not support OpenGL/framebuffer objects.");
    4. return -1;
    5. }
    To copy to clipboard, switch view to plain text mode 

    On a notebook it is returning me false on "hasOpenGLFramebufferObjects".

    My openGL widget constructor is

    Qt Code:
    1. QOpenGLWidget::QOpenGLWidget(QWidget *parent) : QGLWidget(QGLFormat(QGL::SampleBuffers),parent)
    To copy to clipboard, switch view to plain text mode 

    I tryied to change it to

    Qt Code:
    1. QOpenGLWidget::QOpenGLWidget(QWidget *parent) : QGLWidget(QGLFormat(QGL::DirectRendering),parent)
    To copy to clipboard, switch view to plain text mode 

    The problem is that the images are not properly shown as you can see on the attached file.
    Attached Images Attached Images
    Òscar Llarch i Galán

Similar Threads

  1. OpenGL and Qt Question
    By ToddAtWSU in forum Qt Programming
    Replies: 2
    Last Post: 18th April 2009, 19:04
  2. Replies: 3
    Last Post: 12th February 2008, 22:17
  3. openGL with QT
    By me_here_me in forum Qt Programming
    Replies: 4
    Last Post: 2nd July 2007, 02:19
  4. Qtopia Core & OpenGL ES?
    By zelko in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 28th May 2007, 08:21
  5. OpenGL ES, Qt/11 - Qtopia Core?
    By zelko in forum Qt Programming
    Replies: 0
    Last Post: 3rd May 2007, 11:56

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.