void myDisplay(void) glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glClear(GL_COLOR_BUFFER_BIT | GL DEPTH_BUFFER_BIT); glEnable(GL_TEXTURE_2D); gluLookAt(eyex, eyey, eyez, atx, aty, atz, 0, 1, 0);...

Type the complete codevoid myDisplay(void)<br>glMatrixMode(GL_MODELVIEW);<br>glLoadIdentity();<br>glClear(GL_COLOR_BUFFER_BIT |<br>GL DEPTH_BUFFER_BIT);<br>glEnable(GL_TEXTURE_2D);<br>gluLookAt(eyex, eyey, eyez, atx, aty, atz,<br>0, 1, 0);<br>glScalef(6, 6, 6);<br>glPushMatrix();<br>glScalef(0.06, 0.06, 0.06);<br>glTranslatef(-100, 400, -1000);<br>glRotatef(m_angle 1[1], 0, 1, 0);<br>glRotatef(m_angle 1[0], 1, 0, 0);<br>drawhouse();<br>glPopMatrix();<br>Correct the error and<br>glEnable(GL_DEPTH_TEST);<br>glDisable(GL_TEXTURE_2D);<br>complete the code to draw<br>glDisable(GL_LIGHT0);<br>glColor3f(1, 1, 1);<br>this shape in OpenGl<br>glutSwapBuffers();<br>

Extracted text: void myDisplay(void) glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glClear(GL_COLOR_BUFFER_BIT | GL DEPTH_BUFFER_BIT); glEnable(GL_TEXTURE_2D); gluLookAt(eyex, eyey, eyez, atx, aty, atz, 0, 1, 0); glScalef(6, 6, 6); glPushMatrix(); glScalef(0.06, 0.06, 0.06); glTranslatef(-100, 400, -1000); glRotatef(m_angle 1[1], 0, 1, 0); glRotatef(m_angle 1[0], 1, 0, 0); drawhouse(); glPopMatrix(); Correct the error and glEnable(GL_DEPTH_TEST); glDisable(GL_TEXTURE_2D); complete the code to draw glDisable(GL_LIGHT0); glColor3f(1, 1, 1); this shape in OpenGl glutSwapBuffers();

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here