title: Using the following function that draws a filled circle in opengl, how do I make it show at different coordinates of the window?
body: <p>I have got the following code to draw a filled circle in opengl. The problem is that it draws at the center of the screen. How do I make it draw in another position of it?</p>
  <p>Here is the code:</p>
  <pre class="lang-c prettyprint-override"><code>#define CIRCLE_RADIUS = 0.15f
  
  int circle_points = 100;
  
  void draw()
  {
      glClear(GL_COLOR_BUFFER_BIT);
  
      double angle = 2*  PI/circle_points ;
      glPolygonMode( GL_FRONT, GL_FILL );
      glColor3f(0.2, 0.5, 0.5 );
      
      glBegin(GL_POLYGON);
      
      double angle1 = 0.0;        
      glVertex2d( CIRCLE_RADIUS * cos(0.0) , CIRCLE_RADIUS * sin(0.0));
  
      int i;
      for (i = 0; i &lt; circle_points; i++)
      {
          glVertex2d(CIRCLE_RADIUS * cos(angle1), CIRCLE_RADIUS *sin(angle1));
          angle1 += angle ;
      }
  
      glEnd();
      glFlush();
  }
  </code></pre>