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.7k 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.
  • V Offline
    V Offline
    veenusav
    wrote on 9 Mar 2017, 13:36 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)

    M 1 Reply Last reply 9 Mar 2017, 16:02
    0
    • V veenusav
      9 Mar 2017, 13:36

      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)

      M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 9 Mar 2017, 16:02 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
      • V Offline
        V Offline
        veenusav
        wrote on 14 Mar 2017, 12:52 last edited by
        #3

        Thank you @mrjj

        1 Reply Last reply
        0

        1/3

        9 Mar 2017, 13:36

        • Login

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