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