Draws frames with OpenGL