Advertisement
Guest User

Untitled

a guest
Feb 18th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. static const vertex_t cube_data[] = {
  2. //red face
  3. {.pos = {-1.0f,-1.0f,1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {1.0f,1.0f},},
  4. {.pos = {-1.0f,1.0f,1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {1.0f,0.0f},},
  5. {.pos = {1.0f,-1.0f,1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {0.0f,1.0f},},
  6.  
  7. {.pos = {1.0f,-1.0f,1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {0.0f,1.0f},},
  8. {.pos = {-1.0f,1.0f,1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {1.0f,0.0f},},
  9. {.pos = {1.0f,1.0f,1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {0.0f,0.0f},},
  10. //green face
  11. {.pos = {-1.0f,-1.0f,-1.0f},.color = {0.0f,0.0f,0.0f}, .tex_c = {0.0f,0.0f},},
  12. {.pos = {1.0f,-1.0f,-1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {1.0f,0.0f},},
  13. {.pos = {-1.0f,1.0f,-1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {0.0f,1.0f},},
  14.  
  15. {.pos = {-1.0f,1.0f,-1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {0.0f,1.0f},},
  16. {.pos = {1.0f,-1.0f,-1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {1.0f,0.0f},},
  17. {.pos = {1.0f,1.0f,-1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {1.0f,1.0f},},
  18. //blue face
  19. {.pos = {-1.0f,1.0f,1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {0.0f,0.0f},},
  20. {.pos = {-1.0f,-1.0f,1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {0.0f,1.0f},},
  21. {.pos = {-1.0f,1.0f,-1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {1.0f,0.0f},},
  22.  
  23. {.pos = {-1.0f,1.0f,-1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {1.0f,0.0f},},
  24. {.pos = {-1.0f,-1.0f,1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {0.0f,1.0f},},
  25. {.pos = {-1.0f,-1.0f,-1.0f},.color = {0.0f,0.0f,0.0f}, .tex_c = {1.0f,1.0f},},
  26. //yellow face
  27. {.pos = {1.0f,1.0f,1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {1.0f,1.0f},},
  28. {.pos = {1.0f,1.0f,-1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {0.0f,1.0f},},
  29. {.pos = {1.0f,-1.0f,1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {1.0f,0.0f},},
  30.  
  31. {.pos = {1.0f,-1.0f,1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {1.0f,0.0f},},
  32. {.pos = {1.0f,1.0f,-1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {0.0f,1.0f},},
  33. {.pos = {1.0f,-1.0f,-1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {0.0f,0.0f},},
  34. //magenta face
  35. {.pos = {1.0f,1.0f,1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {0.0f,0.0f},},
  36. {.pos = {-1.0f,1.0f,1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {1.0f,0.0f},},
  37. {.pos = {1.0f,1.0f,-1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {0.0f,1.0f},},
  38.  
  39. {.pos = {1.0f,1.0f,-1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {0.0f,1.0f},},
  40. {.pos = {-1.0f,1.0f,1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {1.0f,0.0f},},
  41. {.pos = {-1.0f,1.0f,-1.0f}, .color = {0.0f,0.0f,0.0f}, .tex_c = {1.0f,1.0f},},
  42. //cyan face
  43. {.pos = {1.0f,-1.0f,1.0f}, .color = {0.0f,1.0f,1.0f}, .tex_c = {0.0f,0.0f},},
  44. {.pos = {1.0f,-1.0f,-1.0f}, .color = {0.0f,1.0f,1.0f}, .tex_c = {0.0f,0.0f},},
  45. {.pos = {-1.0f,-1.0f,1.0f}, .color = {0.0f,1.0f,1.0f}, .tex_c = {0.0f,0.0f},},
  46.  
  47. {.pos = {-1.0f,-1.0f,1.0f}, .color = {0.0f,1.0f,1.0f}, .tex_c = {0.0f,0.0f},},
  48. {.pos = {1.0f,-1.0f,-1.0f}, .color = {0.0f,1.0f,1.0f}, .tex_c = {0.0f,0.0f},},
  49. {.pos = {-1.0f,-1.0f,-1.0f},.color = {0.0f,1.0f,1.0f}, .tex_c = {0.0f,0.0f},},
  50. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement