What does the GL_ARRAY_BUFFER target mean in glBindBuffer?

后端 未结 2 1396
太阳男子
太阳男子 2021-02-01 17:53

I was confused about the VBO,

glGenBuffers(1, &positionBufferObject);
glBindBuffer(GL_ARRAY_BUFFER, positionBufferObject);

Besides GL_ARRA

2条回答
  •  遇见更好的自我
    2021-02-01 18:31

    However, the Opengl manual doesn't mention what these targets mean.

    OpenGL 2.1 spec, page 38, section 2.9.1: "Vertex Arrays In Buffer Objects"

    Does this mean the targets (like GL_ARRAY_BUFFER) are addresses?

    Nope, they're just unsigned ints used like enums.

提交回复
热议问题