Draw Arrays

This sample does the same as above, but uses a vertex array to draw the cube instead of immediate mode.

You can grab the sources!