Question # 2:
What are the Open GL Buffers and how can you create and allocate these buffers. Discuss with an example.
Nearly everything you may ever do with OpenGL will involve buffers full of data. Buffers in
OpenGL are depicted as buffer objects. As with several things in OpenGL, buffer objects are
named using GLuint values. Values are stored using the glGenBuffers () command.
Example: void glGenBuffers(GLsizei n, GLuint *buffers);
After calling glGenBuffers(),you will have an array of buffer object names in buffers, but at this
time, they’re simply placeholders. They’re not really buffer objects yet. The buffer objects
themselves don’t seem to be really created till the name is first sure to one of the buffer binding
points on the context. this can be important as a result of OpenGL could build choices regarding
the most effective way to assign memory for the buffer object based on where it’s bound.