Advertisement
SIKER_98

hsv

Feb 3rd, 2020
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. glScalef(10, 10, 10);
  2. glBegin(GL_TRIANGLE_FAN);
  3. // 1 sciana
  4. glColor3f(1, 1, 1);
  5. glVertex3f(0, 0, 0);
  6.  
  7. glColor3f(0, 1, 1);
  8. glVertex3f(-1, 1, 0);
  9. glColor3f(0, 1, 0);
  10. glVertex3f(-0.5, 1, 0.87);
  11. // 2 sciana
  12. glVertex3f(-0.5, 1, 0.87);
  13.  
  14. glColor3f(1, 1, 0);
  15. glVertex3f(0.5, 1, 0.87);
  16. // 3 sciana
  17. glVertex3f(0.5, 1, 0.87);
  18. glColor3f(1, 0, 0);
  19. glVertex3f(1, 1, 0);
  20. // 4 sciana
  21. glVertex3f(1, 1, 0);
  22. glColor3f(1, 0, 1);
  23. glVertex3f(0.5, 1, -0.87);
  24. // 5 sciana
  25. glVertex3f(0.5, 1, -0.87);
  26.  
  27. glColor3f(0, 0, 1);
  28. glVertex3f(-0.5, 1, -0.87);
  29. // 6sciana
  30. glVertex3f(-0.5, 1, -0.87);
  31. glColor3f(0, 1, 1);
  32. glVertex3f(-1, 1, 0);
  33.  
  34. //gora
  35. glColor3f(0, 1, 0);
  36. glVertex3f(-0.5, 1, 0.87);
  37. glColor3f(0, 0, 0);
  38. glVertex3f(0, 1, 0);
  39. //
  40. glColor3f(1, 1, 0);
  41. glVertex3f(0.5, 1, 0.87);
  42. glColor3f(0, 0, 0);
  43. glVertex3f(0, 1, 0);
  44. //
  45. glVertex3f(0, 1, 0);
  46. glColor3f(1, 0, 0);
  47. glVertex3f(1, 1, 0);
  48. //
  49. glColor3f(0, 0, 0);
  50. glVertex3f(0, 1, 0);
  51. glColor3f(1, 0, 1);
  52. glVertex3f(0.5, 1, -0.87);
  53. //
  54. glColor3f(0, 0, 0);
  55. glVertex3f(0, 1, 0);
  56. glColor3f(0, 0, 1);
  57. glVertex3f(-0.5, 1, -0.87);
  58. //
  59. glColor3f(0, 0, 0);
  60. glVertex3f(0, 1, 0);
  61. glColor3f(0, 1, 1);
  62. glVertex3f(-1, 1, 0);
  63. glEnd();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement