How to change the position of a circle?

Hi guys Iam new to OpenGL. Iam trying to create a small circle and would like to position it in the bottom-left corner of the screen. The code below draws a massive circle. Could you please tell me how to change the size of the circle and the position of it to a specific place on the window.


#define PI 3.1415926535898
GLint circle_points =100;

void Circle()

    double angle = 2*  PI/circle_points ;
        double angle1=0.0;
        glVertex2d( cos(0.0) , sin(0.0));
        int i;
        for ( i=0 ; i< circle_points ;i++)
            printf( "angle = %f 
" , angle1);
            angle1 += angle ;

The function you need is gltranslate (or just add a offset to each of youR points).

Where do I add the gltranslate inside the void Circle() or outside?

Normally outside that way you can draw several circles at different locations. (Remember to use glPushMatrix and glPopMatrix to save and restore the untranslated coordinate system) Also move your clear outside.