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 use OpenGL VAO?
Forum Updated to NodeBB v4.3 + New Features

How to use OpenGL VAO?

Scheduled Pinned Locked Moved Solved General and Desktop
windowsvs2015opengl
3 Posts 2 Posters 2.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.
  • veenusavV Offline
    veenusavV Offline
    veenusav
    wrote on last edited by A Former User
    #1

    The following code is causing error in class inherited from QOpenGLWidget & QOpenGLFunctions.

    GLuint VertexArrayID;
     glGenVertexArrays(1, &VertexArrayID);
     glBindVertexArray(VertexArrayID);
    

    Platform: Windows, Visual studio 2015
    Error: glGenVertexArrays and glBindVertexArray are not found(C3861 identifier not found)

    mrjjM 1 Reply Last reply
    0
    • veenusavV veenusav

      The following code is causing error in class inherited from QOpenGLWidget & QOpenGLFunctions.

      GLuint VertexArrayID;
       glGenVertexArrays(1, &VertexArrayID);
       glBindVertexArray(VertexArrayID);
      

      Platform: Windows, Visual studio 2015
      Error: glGenVertexArrays and glBindVertexArray are not found(C3861 identifier not found)

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @veenusav said in How to use Open GL VAO in Qt for desktop?:

      glBindVertexArray

      Hi
      Disclaimer: OpenGl newbie

      However, if u read here
      http://www.kdab.com/opengl-in-qt-5-1-part-1/

      it seems that glBindVertexArray seems to be hidden in
      QOpenGLVertexArrayObject
      http://doc.qt.io/qt-5/qopenglvertexarrayobject.html

      1 Reply Last reply
      2
      • veenusavV Offline
        veenusavV Offline
        veenusav
        wrote on last edited by
        #3

        Thank you @mrjj

        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