+
+ //code to draw ticks as small circles
+ void drawOneCircle(float x1, float y1, float r)
+ {
+ glBegin(GL_LINE_LOOP); // Use polygon to approximate a circle
+ for(int count=0; count<25; count++) {
+ float cosine = r * cos(count * 2 * SG_PI/10.0);
+ float sine = r * sin(count * 2 * SG_PI/10.0);
+ glVertex2f(cosine+x1, sine+y1);
+ }
+ glEnd();
+ }