Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1.     GLvoid Draw_MUSHROOM(double x, double y, double z){
  2.         glPushMatrix();
  3.             glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, mat_shaft_dif);
  4.             glTranslatef(x, y ,z);
  5.             glColor3ub(128, 64 ,0);
  6.             glutSolidCone(0.04, 0.2, 64 ,64);
  7.         glPopMatrix();
  8.         glPushMatrix();
  9.         glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_head_dif);
  10.             glColor3ub(255 , 0, 0);
  11.             glTranslatef(x, y, z + 0.15);
  12.             glutSolidSphere(0.08, 64 ,64);
  13.         glPopMatrix();
  14.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement