glVertexAttribPointer clarification

前端 未结 2 1351
傲寒
傲寒 2020-12-04 04:59

Just want to make sure I understand this correctly (I\'d ask on SO Chat, but it\'s dead in there!):

We\'ve got a Vertex Array, which we make \"current\" by binding i

2条回答
  •  伪装坚强ぢ
    2020-12-04 05:16

    The terminology and sequence of APIs to be called is quite confusing indeed. What's even more confusing is how the various aspects - buffer, generic vertex attribute and shader attribute variable get associated. See OpenGL-Terminology for a pretty good explanation.

    Further, the link OpenGL-VBO,shader,VAO shows a simple example with the necessary API calls. It's particularly good for those transitioning from immediate mode to the programmable pipeline.

    Hope it helps.

    Edit: As you can see from the comments below, people can make assumptions and jump to conclusions. The reality is that it's quite confusing for beginners.

提交回复
热议问题