3d model reading and redrawing in OpenGL