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 do i draw using opengl offscreen into a QImage without using a QOGLWidget
Forum Updated to NodeBB v4.3 + New Features

How do i draw using opengl offscreen into a QImage without using a QOGLWidget

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.9k Views 1 Watching
  • 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.
  • L Offline
    L Offline
    louper
    wrote on last edited by
    #1

    I need to be able to draw offscreen using opengl commands into a QImage.
    In looking at the Qt documentation, it seems like i should be doing my opengl drawing into a QGLPixelBuffer, and then using that to generate a Qimage via the toimage() call.
    The Qt opengl demo examples all seem to use QOGLWidgets and draw onto the screen.
    Is there a simple code sample that just does something simple like draws an opengl triangle into an offscreen OGLPixelBuffer without using a QOGLWidget as a part of the process that someone could post that explains how to do what i want to do.
    I think with that i can get going with what i want to do.
    thanks

    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