Some sample code for OpenGL I've learned from http://www.opengl-tutorial.org