I must draw lots of primitives with OpenGL (3.3, 4.2), I knew with glutSolidTeapot() ; I can draw a teapot primitive with glut.
But it seems there won't be a vertex array generated from this command, and I don't know if this kind of commands are deprecated or not.
And I noticed lots of modern OpenGL tutorials just loads their own primitives and avoided to just use glut, they even loaded simple geometry from 3d mesh format file.
My purpose is to just draw these primitives as quick as possible.And use the new OpenGL as much as possible.
So that how to draw primitives in modern OpenGL?