Code example for GL10

Methods: glColorPointer, glDrawArrays, glEnableClientState, glVertexPointer