Midpoint Line Drawing Algorithm In Opengl