Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. namespace Colors {
  2.  
  3. XMGLOBALCONST XMVECTORF32 White = { 1.0f, 1.0f, 1.0f, 1.0f };
  4. XMGLOBALCONST XMVECTORF32 Black = { 0.0f, 0.0f, 0.0f, 1.0f };
  5. XMGLOBALCONST XMVECTORF32 Red = { 1.0f, 0.0f, 0.0f, 1.0f };
  6. XMGLOBALCONST XMVECTORF32 Green = { 0.0f, 1.0f, 0.0f, 1.0f };
  7. XMGLOBALCONST XMVECTORF32 Blue = { 0.0f, 0.0f, 1.0f, 1.0f };
  8. XMGLOBALCONST XMVECTORF32 Yellow = { 1.0f, 1.0f, 0.0f, 1.0f };
  9. XMGLOBALCONST XMVECTORF32 Cyan = { 0.0f, 1.0f, 1.0f, 1.0f };
  10. XMGLOBALCONST XMVECTORF32 Magenta = { 1.0f, 0.0f, 1.0f, 1.0f };
  11.  
  12. XMGLOBALCONST XMVECTORF32 Silver = { 0.75f, 0.75f, 0.75f, 1.0f };
  13. XMGLOBALCONST XMVECTORF32 LightSteelBlue = { 0.69f, 0.77f, 0.87f, 1.0f };
  14. }
  15.  
  16. Vertex vertices[] = {
  17. { XMFLOAT3(-1.0f, -1.0f, -1.0f), (const float*)&Colors::White },
  18. {XMFLOAT3(-1.0f, +1.0f, -1.0f), (const float*)&Colors::Black },
  19. {XMFLOAT3(+1.0f, +1.0f, -1.0f), (const float*)&Colors::Red },
  20. {XMFLOAT3(+1.0f, -1.0f, -1.0f), (const float*)&Colors::Green},
  21. {XMFLOAT3(-1.0f, -1.0f, +1.0f), (const float*)&Colors::Blue},
  22. {XMFLOAT3 (-1.0f, +1.0f, +1.0f), (const float*)&Colors::Yellow},
  23. {XMFLOAT3 (+1.0f, +1.0f, +1.0f), (const float*)&Colors::Cyan},
  24. {XMFLOAT3 (+1.0f, -1.0f, +1.0f), (const float*)&Colors::Magenta}
  25. };
  26.  
  27. struct Vertex {
  28. XMFLOAT3 Pos; XMFLOAT4 Color;
  29. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement