Guest User

Untitled

a guest
Oct 19th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. void Airplane()
  2. {
  3.  
  4.  
  5. glPushMatrix();
  6. rotacionDeBase();
  7. //body
  8. glPushMatrix();
  9. glRotatef(15,1.0,0.0,0.0);
  10. Llanta(3.0,25.0);
  11. glPopMatrix();
  12. // cabina
  13. glPushMatrix();
  14. glTranslatef(0.0,0.0,36.0);
  15. drawSphere(5.5,20,20);
  16. glPopMatrix();
  17.  
  18. //planes 1
  19. glPushMatrix();
  20. glTranslatef(0.0,10.0,19.0);
  21. glRotatef(15,1.0,0.0,0.0);
  22. glScalef(25.0,0.5,5.0);
  23. drawBox(3.0);
  24. glPopMatrix();
  25. //planes 2
  26. glPushMatrix();
  27. glTranslatef(0.0,-13.0,17.0);
  28. glRotatef(15,1.0,0.0,0.0);
  29. glScalef(25.0,0.5,5.0);
  30. drawBox(3.0);
  31. glPopMatrix();
  32. // joins
  33. glPushMatrix();
  34. glTranslatef(30.0,10.0,17.0);
  35. glRotatef(90,1.0,0.0,0.0);
  36. Llanta(0.2,110.0);
  37. glPopMatrix();
  38. // joins
  39. glPushMatrix();
  40. glTranslatef(-30.0,10.0,17.0);
  41. glRotatef(90,1.0,0.0,0.0);
  42. Llanta(0.2,110.0);
  43. glPopMatrix();
  44. //helices
  45. //soporte
  46. glPushMatrix();
  47. drawSphere(3.0,20,20);
  48. glPopMatrix();
  49. //aspas
  50. glPushMatrix();
  51. glTranslatef(0.0,9.0,-0.2);
  52. glRotatef(15,1.0,0.0,0.0);
  53. glScalef(0.5,3.5,0.5);
  54. Llanta(1.0,0.5);
  55. glPopMatrix();
  56. //aspas
  57. glPushMatrix();
  58. glTranslatef(0.0,-10.5,-5.0);
  59. glRotatef(15,1.0,0.0,0.0);
  60. glScalef(0.5,3.5,0.5);
  61. Llanta(1.0,0.5);
  62. glPopMatrix();
  63. //cola
  64. glPushMatrix();
  65. glTranslatef(0.0,-18.5,69.0);
  66. drawSphere(8.99,20,20);
  67. glPopMatrix();
  68. //aletas traseras
  69. glPushMatrix();
  70. glTranslatef(0.0,-12.5,73.0);
  71. glRotatef(15,1.0,0.0,0.0);
  72. glScalef(0.5,3.5,10.5);
  73. Llanta(1.0,0.5);
  74. glPopMatrix();
  75. //Llantas
  76. //llanta1
  77. glPushMatrix();
  78. glTranslatef(7.0,-22.5,20.0);
  79. glRotatef(90,0.0,1.0,0.0);
  80. Llanta(2.0,1.0);
  81. glPopMatrix();
  82. //llanta2
  83. glPushMatrix();
  84. glTranslatef(-9.0,-22.5,20.0);
  85. glRotatef(90,0.0,1.0,0.0);
  86. Llanta(2.0,1.0);
  87. glPopMatrix();
  88. //llanta3
  89. glPushMatrix();
  90. glTranslatef(0.0,-25.5,50.0);
  91. glRotatef(90,0.0,1.0,0.0);
  92. Llanta(1.0,1.0);
  93. glPopMatrix();
  94. //soportes llantas
  95. // joins
  96. glPushMatrix();
  97. glTranslatef(4.0,-12.0,20.0);
  98. glRotatef(90,1.0,0.0,0.0);
  99. Llanta(0.2,50.0);
  100. glPopMatrix();
  101. // joins
  102. glPushMatrix();
  103. glTranslatef(-4.0,-12.0,20.0);
  104. glRotatef(90,1.0,0.0,0.0);
  105. Llanta(0.2,50.0);
  106. glPopMatrix();
  107. //join3
  108. glPushMatrix();
  109. glTranslatef(-8.0,-22.0,20.0);
  110. glRotatef(90,0.0,1.0,0.0);
  111. Llanta(0.2,80.0);
  112. glPopMatrix();
  113.  
  114.  
  115.  
  116.  
  117.  
  118. glPopMatrix();
  119. }
Add Comment
Please, Sign In to add comment