Professional Documents
Culture Documents
Practica 10 U3
Practica 10 U3
//codigo
#include <GL/glut.h>
void display(void)
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glTranslatef(.2,.6,0.0);
glRotatef(85,.9,.10,0);
glColor3f(.5,.5,.5);
glutWireCone(.2,.40,21,21);
glLoadIdentity();
glTranslatef(.2,.4,0.0);
glRotatef(89,.9,.0,0);
glColor3f(.8,.5,.5);
glutSolidTorus(.1,.20,31,31);
glFlush();