Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void drawMushroom3(float posX, float posY, float posZ, float scale) {
- glPushMatrix();
- glColor3f(0.6, 0.6, 0.6);
- glTranslated(posX, posY + 10 * scale, posZ);
- auxSolidCylinder(3.0 * scale, 10.0 * scale);
- glPopMatrix();
- glColor3f(0.2, 0.066, 0);
- glPushMatrix();
- glTranslated(posX, posY + 10 * scale + 1, posZ);
- glRotated(-90, 1, 0, 0);
- auxSolidCone(5 * scale, 3 * scale);
- glPopMatrix();
- /*GLUquadricObj *quadObj;
- quadObj = gluNewQuadric();
- gluQuadricDrawStyle(quadObj, GLU_FILL);
- glColor3f(0.2, 0.066, 0);
- for (int i = 0; i <= 100; i++) {
- glPushMatrix();
- glTranslated(posX, posY + 10 + 5 * i / 100, posZ);
- gluDisk(quadObj, 0, 5 - 5 * i / 100, 20, 20);
- glPopMatrix();
- }*/
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement