VBO

This sample does the same as above, but uses a vertex buffer object to draw the cube instead of a vertex array. Basically, VBO are stored in the GPU memory whereas the vertex arrays are stored in the main (CPU) memory. As such. VBO can be much faster in some cases. Note that you'll need OpenGL 1.5 for this sample to work.

You can grab the sources!