rendered paste bodyconst float RAD = 2; // radius of pacman body circle (this goes above main)const float RAD2 = .3; // radius of pacman eye circle (this goes above main)const float INC=(PI/90);void drawPacman(){float theta;glBegin(GL_POLYGON); //body for(theta=0.0; theta <= 2*PI; theta += INC) { glColor3f(1,1,0); glVertex2f(3+RAD*cos(theta), 20 + RAD*sin(theta)); }glEnd();glBegin(GL_POLYGON); //eye for(theta=0.0; theta <= 2*PI; theta += INC) { glColor3f(0,0,0); glVertex2f(3.7+RAD2*cos(theta), 20.9 + RAD2*sin(theta)); }glEnd();}