You are on page 1of 2

Practica 10

//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();

void init (void)


{
glClearColor(1.0,1.0,1.0,0.0);
glMatrixMode(GL_MODELVIEW);
}

int main(int argc, char** argv) {


glutInit(&argc, argv);
glutInitWindowSize(800, 600);
glutCreateWindow("Lopez manzanares jasiel alfredo");
glutInitWindowPosition(200, 200);
init ();
glutDisplayFunc(display);
glutMainLoop();
return 0;
}

You might also like