Some basic code from a OpenGL tutorial.
Add link to tutorial.