Está en la página 1de 2

Practica 9

//Código
#include <GL/glut.h>
#include<stdio.h>

void display(void)
{

glClear (GL_COLOR_BUFFER_BIT);
glColor3f(0.5,.9,.5);
glTranslatef(.0,.3,0);
glutSolidSphere(.2,25,25);
glLoadIdentity();
glColor3f(.8,7,1);

glTranslatef(.0,.1,0);
glutSolidSphere(.2,25,25);
glLoadIdentity();

glColor3f(.65,.55,.3);
glRotatef(90, 1.0f, 0.0f, 0.0f);
glutSolidCone(.2, .3,25,25);

glLoadIdentity();

glFlush();
}
void init (void)
{

glClearColor (1,1,1,0);
}
int main(int argc, char** argv) {
glutInit(&argc, argv);
glutInitWindowSize(700, 800);
glutCreateWindow("Lopez manzanares jasiel alfredo");

glutInitWindowPosition(200, 200);
init ();
glutDisplayFunc(display);
glutMainLoop();
return 0;
}

También podría gustarte