Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [Solved]Where is glGenBuffers?

    General and Desktop
    2
    3
    2251
    Loading More Posts
    • 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
      stereomatching last edited by

      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 Reply Quote 0
      • L
        laumaya last edited by

        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 Reply Quote 0
        • S
          stereomatching last edited by

          Thanks for your response

          1 Reply Last reply Reply Quote 0
          • First post
            Last post