Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to draw to front buffer with QOpenGLWidget
Forum Updated to NodeBB v4.3 + New Features

How to draw to front buffer with QOpenGLWidget

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 362 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I am upgrading my application from QGLWidget using Qt 5.3.2 to QOpenGLWidget using QT 5.6.0. The application is upgraded and runs well. However, I am stuck trying to preserve my debugging tools. My development environment is Visual Studio 2013 and even though the final application is using double buffered graphics, for debugging purposes I've written some methods that I could invoke interactively from the debugger, draw into front buffer and see the output on the screen. These functions no longer work because QOpenGLWidget draws to frame buffer. Furthermore, even before attempting to draw when I call glDrawBuffer(GL_FRONT) it generates glError to 1280 (invalid enum). Additional piece of data - glGetIntegerv(GL_DRAW_BUFFER, &my_val) returns 0x8ce0 which is GL_COLOR_ATTACHMENT0 and would make sense with GL 3.0 even though my intent was to limit GL features to 2.0 only.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved