OpenGL. Rasterization of circle. Midpoint and Bresenham's algorithm