glGenVertexArrays
glGenVertexArrays is an OpenGL function used to generate vertex array object (VAO) names. It takes two parameters: the number of VAO names to generate (n) and a pointer to an array (arrays) where the generated names will be stored. The function writes n new, unused VAO identifiers into the provided array. The generated names are non-zero and can be used as handles to VAOs within the current OpenGL context.
The vertex array object is a container for state related to vertex data input. When a VAO
After generation, a VAO must be bound before it can be configured or used for drawing. To
GenVertexArrays originated from the ARB_vertex_array_object extension and is part of OpenGL core in version 3.0 and