immediate mode OpenGL
should transfer to shader based OpenGL