Basic smooth line drawing with OpenGL