Ejemplo n.º 1
0
void drawBody() {

        glPushMatrix();
                glRotatef(0, 0.0, 0.0, 1.0);
                glScalef(1.0, 1.0, 1.0);
                drawMM();
        glPopMatrix();
        
        glPushMatrix();
                glTranslatef(1.25, 0.0, 0.0);
                glRotatef(180, 0.0, 0.0, 1.0);
                glScalef(1.0, 1.0, 1.0);
                drawM();
        glPopMatrix();
        
        glPushMatrix();
                glTranslatef(-1.5, 0.5, 0.0);
                glRotatef(0, 0.0, 0.0, 1.0);
                glScalef(1.0, 1.0, 1.0);
                drawT();
        glPopMatrix();
        
        glPushMatrix();
                glTranslatef(1.5, -0.5, 0.0);
                glRotatef(180, 0.0, 0.0, 1.0);
                glScalef(1.0, 1.0, 1.0);
                drawT();
        glPopMatrix();
        
        glPushMatrix();
                glTranslatef(0.2, -0.5, 0.0);
                glRotatef(180, 0.0, 1.0, 0.0);
                glScalef(1.0, 1.0, 1.0);
                drawF();
        glPopMatrix();
        
        glPushMatrix();
                glTranslatef(0, -0.5, 0.0);
                //glRotatef(0.0,0.0, 0.0, 1.0);
                glScalef(1.0, 0.9, 1.0);
                drawF();
        glPopMatrix();
}
Ejemplo n.º 2
0
void drawTailSeg() {

	glPushMatrix();
		//glRotatef(0, 0.0, 0.0, 1.0);
		//glTranslatef(-0.38, -0.7, 0.0);
		glScalef(0.25, 0.05, 0.5);
		drawT();
	glPopMatrix();
	
}