What is the role of glBindVertexArrays vs glBindBuffer and what is their relationship?

前端 未结 5 2014
离开以前
离开以前 2020-12-12 10:02

I\'m new to OpenGL and Graphics Programming. I\'ve been reading a textbook which has been really thorough and well-written so far.However, I\'ve hit a point in the code that

5条回答
  •  清歌不尽
    2020-12-12 10:06

    There is no relationship between VertexArray and VBO.

    A vertex array allocates the memory in RAM and sends pointer to the API. VBO allocates the memory in the graphics card - system memory has no address for it. If you need to access the vbo data from system you need to copy it from vbo to the system first.

    Also, in newer versions of OpenGL, vertex arrays are completely removed (depcrecated in 3.0, removed in 3.1)

提交回复
热议问题