All pastes #982899 Raw Edit

Something

public cpp v1 · immutable
·published 2008-04-12 22:14 UTC
rendered paste body
const 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)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();}