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. [Solved]Where is glGenBuffers?

[Solved]Where is glGenBuffers?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.8k 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.
  • S Offline
    S Offline
    stereomatching
    wrote on last edited by
    #1

    Studying the examples from this site "developer guides":http://qt-project.org/wiki/Developer-Guides

    From the source codes of hello-opengl, the paintGL function call "setAttributeArray" to
    set the data of the vertices, the weird thing is I never see anything like "glGenBuffers"

    The source codes of "setAttributeArray" just do some preprocess and call the "glVertexAttribPointer"
    Without "glGenBuffers", "glBindBuffer", "glBufferData", how could the gpu know it should
    allocate a buffer and hold the data?Thanks

    1 Reply Last reply
    0
    • L Offline
      L Offline
      laumaya
      wrote on last edited by
      #2

      Hi,
      This example doesn't use "Vertex Buffer Object" "VBO":http://en.wikipedia.org/wiki/Vertex_Buffer_Object but use "Vertex Array" so vertex data aren't store into the graphic memory. Then commands “glGenBuffers”, “glBindBuffer”, “glBufferData” aren't used.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        stereomatching
        wrote on last edited by
        #3

        Thanks for your response

        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