Modelo de Pared

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

//modelo de paredes

void pared(float x0,float x1,float z0,float z1){


glColor4f(0.6, 0.6, 0.7, 1);
//glColor4f(0.0, 1.0, 1.0, 0.75);
glBegin(GL_QUADS);
glVertex3f(x0,0,z0);
glVertex3f(x0,0,z1);
glVertex3f(x1,0,z1);
glVertex3f(x1,0,z0);

glVertex3f(x0,1,z0);
glVertex3f(x0,1,z1);
glVertex3f(x1,1,z1);
glVertex3f(x1,1,z0);
glColor4f(0.2, 0.6, 0.6, 1);

glVertex3f(x0,0,z0);
glVertex3f(x0,0,z1);
glVertex3f(x0,1,z1);
glVertex3f(x0,1,z0);

glVertex3f(x1,0,z1);
glVertex3f(x1,0,z0);
glVertex3f(x1,1,z0);
glVertex3f(x1,1,z1);
glColor4f(0.6, 0.7, 0.9, 1);
glVertex3f(x0,0,z0);
glVertex3f(x1,0,z0);
glVertex3f(x1,1,z0);
glVertex3f(x0,1,z0);

glVertex3f(x0,0,z1);
glVertex3f(x0,1,z1);
glVertex3f(x1,1,z1);
glVertex3f(x1,0,z1);

glEnd();
}

You might also like