Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GLvoid Draw_MUSHROOM(double x, double y, double z){
- glPushMatrix();
- glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, mat_shaft_dif);
- glTranslatef(x, y ,z);
- glColor3ub(128, 64 ,0);
- glutSolidCone(0.04, 0.2, 64 ,64);
- glPopMatrix();
- glPushMatrix();
- glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_head_dif);
- glColor3ub(255 , 0, 0);
- glTranslatef(x, y, z + 0.15);
- glutSolidSphere(0.08, 64 ,64);
- glPopMatrix();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement