Пример #1
0
void Person::drawLeg()
{
	glPushMatrix();
		glPushMatrix();
			glScalef(.5,2.5,0);
			glCallList(squareIndex);
		glPopMatrix();
		glTranslatef(60,0,0);
		drawFoot();
	glPopMatrix();
}//end drawLeg
Пример #2
0
void drawLeg() {
	glColor3f (0.0, 1.0, 0.0);
	GLUquadricObj *leg = gluNewQuadric();
	gluQuadricDrawStyle (leg, GLU_FILL);
	gluCylinder (leg, LegR, LegR, LegL, 6, 4);

	glPushMatrix();
		glTranslatef(0.0, 0.0, LegL);
		glRotatef(-FootAngle, 1.0, 0.0, 0.0);
		drawFoot();
	glPopMatrix();
}