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. Accessing Modern Open GL functions in Qt
Qt 6.11 is out! See what's new in the release blog

Accessing Modern Open GL functions in Qt

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 811 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.
  • B Offline
    B Offline
    baordog
    wrote on last edited by
    #1

    http://stackoverflow.com/questions/23396717/accessing-modern-opengl-functions-from-qt-creator

    Basically, I am following and adapting the Hello GL es examples, and I want to switch them over to the modern pipeline functions available since OpenGL 3.0. I am using Open GL 3.0.

    When I am in the example projects, functions like this:

    glEnableVertexAttribArray(0);
    glBindBuffer(GL_ARRAY_BUFFER, vertexbuffer);
    glVertexAttribPointer()

    Do not appear available in scope (i.e, they wont compile, do not come up in intelisense.)

    Are these simply wrapped by Qt, or do I need to include some other libraries to get the rest of open gl?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      baordog
      wrote on last edited by
      #2

      Found the QGLFunctions class, and that mostly helps.

      However I have to write:

      QGLFunctions::glEnableVertexAttribArray

      I will spin up a rendering pipeline with these, and see if they work.

      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