Understanding OpenGL with various examples from the web