title: Filled Bresenham circle with some color in OpenGL
body: <p>I am using this Bresenham's algorithm to draw circle. This code works, but I need filled circle, not only border.</p>
  
  <p>This is my code:</p>
  
  <pre><code>void setPixel(int x,int y)  {  
      glBegin(GL_POINTS); 
      glColor3f(0.0f, 1.0f, 0.0f);
      glPointSize (20.0);
      glVertex2i(x,y);
      glEnd();
  }
  
  void BresenhamKrug(int xCenter, int yCenter,int r){ //napravite parametarski poziv
  int x=0,y=r;
  int d=3-(2*r);
  
  glColor3f(0.5,0.3,1.); 
  
  
  while(x&lt;=y)
  {
      setPixel(xCenter+x,yCenter+y);  setPixel(xCenter+y,yCenter+x);
      setPixel(xCenter-x,yCenter+y);  setPixel(xCenter+y,yCenter-x); 
      setPixel(xCenter-x,yCenter-y);  setPixel(xCenter-y,yCenter-x); 
      setPixel(xCenter+x,yCenter-y);  setPixel(xCenter-y,yCenter+x); 
  
      if (d&lt;0)
          d += (4*x)+6;
      else{
            d += (4*(x-y))+10;
            y--;
      }
  
      x++;
  }
  glFlush();
  }
  </code></pre>
  
  <p>Is there any way to do that ?</p>