1
\$\begingroup\$
GLuint VertexArrayID;
glGenVertexArrays(1, &VertexArrayID);
glBindVertexArray(VertexArrayID);

As you can see from the above code, some tutorials use this before using opengl. But a tutorial that I am following, directly uses glGenBuffers method and it works just fine. Hence I am totally confused what glGenVertexArrays. It is sad that it defines how buffer is used, but noone says in what way. Can you help me understand ?

\$\endgroup\$
1
  • \$\begingroup\$ VAOs and VBOs (glGenBuffers) are two different things. You might benefit from reading an answer I wrote on StackOverflow. \$\endgroup\$ Commented Dec 5, 2014 at 10:46

1 Answer 1

3
\$\begingroup\$

If you use OpenGL 3.2, it's required.

\$\endgroup\$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.