Question: void Draw() { glClear(GL_COLOR_BUFFER_BIT); gluLookAt(0, 3, 5, 0, 1, 0, 0, 1, 2); glColor3f(1.0,0.5,0.5); //Pink Color glutSolidTeapot(4); //Draw the Teapot glRotatef(180, 0, 1, 0); //Rotate

void Draw() { glClear(GL_COLOR_BUFFER_BIT); gluLookAt(0, 3, 5, 0, 1, 0, 0, 1, 2);

glColor3f(1.0,0.5,0.5); //Pink Color glutSolidTeapot(4); //Draw the Teapot

glRotatef(180, 0, 1, 0); //Rotate 180 glColor3f(1.0, 0.0, 0.0); //red color glutSolidTeapot(3); //Draw Teapot

glTranslatef(-1.0 , -1.0 , 0.0); //set translation parameter glColor3f(0.0 ,1.0 ,0.0 ); //green color glutSolidTeapot(3); //Redraw the Teapot

glScalef(0.3 ,0.3 , 0.0); //Scale the teaput glColor3f(0.0 ,0.0 , 1.0); //blue color glutSolidTeapot(1); //Redraw the Teapot

glFlush();

I need a picture for the output

in openGl

computer graphics

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!