glGen
glGen is a family of OpenGL functions used to generate unique non-zero names (identifiers) for various OpenGL object types. These functions do not create the objects themselves; instead, they reserve object names that can later be bound and instantiated through subsequent calls. Common examples include glGenBuffers, glGenVertexArrays, glGenTextures, glGenFramebuffers, glGenRenderbuffers, glGenSamplers, glGenQueries, and glGenTransformFeedbacks.
Prototype and behavior: each function follows the pattern void glGenXxx(GLsizei n, GLuint *ids), where n is the
Usage pattern: ensure a current OpenGL context before calling glGen*. Generate the needed number of names, then
Notes: the names are non-zero identifiers; 0 is reserved. glGen must be called within a valid context,