質問

How can I get the name of the currently bound Vertex Array Object?

I looked in the manual but couldn't find an enum to use with glGet().

役に立ちましたか?

解決

Try glGetIntegerv() with GL_VERTEX_ARRAY_BINDING.

See page 652 ("Table 23.8. Vertex Array Data (not in Vertex Array objects)") in the OpenGL 4.3 spec.

If you haven't spec-dived before note they omit the gl prefix from functions and the GL_ prefix from enums.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top