Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. glEnable(GL_DEPTH_TEST);
  2. glEnable(GL_ALPHA_TEST); //разрешаем обрабатывать четвертый компонент цвета
  3. glEnable(GL_BLEND); // разрешаем наложение цветов
  4.  
  5. glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
  6.  
  7. glColor3d(0.6, 0.4, 0.2);
  8.  
  9. glRotated(90.,0.,1.,0);
  10. glPushMatrix();
  11. auxSolidCylinder(1., 23.);
  12. //glTranslated(0.,9.,0.);
  13. glPopMatrix();
  14. glPushMatrix();
  15. glRotated(-90., 1., 0., 0.);
  16. glTranslated(0., 0., -1.);
  17. glColor4d(0.,0.8,0.,1);
  18. auxSolidCone(4.,6.99);
  19. glColor4d(0., 0.6, 0., 1.);
  20. auxWireCone(4.,7);
  21.  
  22.  
  23. glTranslated(0., 0., -5.);
  24. glColor4d(0., 0.8, 0., 1);
  25. auxSolidCone(5., 6.99);
  26. glColor3d(0., 0.6, 0.);
  27. auxWireCone(5., 7);
  28.  
  29. glTranslated(0., 0., -5.);
  30. glColor4d(0., 0.8, 0., 1);
  31. auxSolidCone(6., 6.99);
  32. glColor3d(0., 0.6, 0.);
  33. auxWireCone(6., 7);
  34.  
  35. glTranslated(0., 0., -5.);
  36. glColor4d(0., 0.8, 0., 1);
  37. auxSolidCone(7., 6.99);
  38. glColor4d(0., 0.6, 0.,1.);
  39. auxWireCone(7., 7);
  40.  
  41.  
  42. glPopMatrix();
  43. glDisable(GL_DEPTH_TEST);
  44. glPushMatrix();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement