Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.70 KB | None | 0 0
  1. void drawMushroom3(float posX, float posY, float posZ, float scale) {
  2.     glPushMatrix();
  3.     glColor3f(0.6, 0.6, 0.6);
  4.     glTranslated(posX, posY + 10 * scale, posZ);
  5.     auxSolidCylinder(3.0 * scale, 10.0 * scale);
  6.     glPopMatrix();
  7.     glColor3f(0.2, 0.066, 0);
  8.     glPushMatrix();
  9.     glTranslated(posX, posY + 10 * scale + 1, posZ);
  10.     glRotated(-90, 1, 0, 0);
  11.     auxSolidCone(5 * scale, 3 * scale);
  12.     glPopMatrix();
  13.     /*GLUquadricObj *quadObj;
  14.     quadObj = gluNewQuadric();
  15.     gluQuadricDrawStyle(quadObj, GLU_FILL);
  16.     glColor3f(0.2, 0.066, 0);
  17.     for (int i = 0; i <= 100; i++) {
  18.         glPushMatrix();
  19.         glTranslated(posX, posY + 10 + 5 * i / 100, posZ);
  20.         gluDisk(quadObj, 0, 5 - 5 * i / 100, 20, 20);
  21.         glPopMatrix();
  22.     }*/
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement