Advertisement
baggyrabbit

Plane.h

Jun 11th, 2012
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.64 KB | None | 0 0
  1. #ifndef _QCAR_PLANE_H_
  2. #define _QCAR_PLANE_H_
  3.  
  4.  
  5. #define NUM_PLANE_VERTEX 4
  6. #define NUM_PLANE_INDEX 6
  7.  
  8.  
  9. static const float planeVertices[NUM_PLANE_VERTEX * 3] =
  10. {
  11.     -1.00f,  -1.00f,   0.00f,
  12.     1.00f,  -1.00f,   0.00f,
  13.     1.00f,   1.00f,   0.00f,
  14.     -1.00f,   1.00f,   0.00f
  15. };
  16.  
  17. static const float planeTexCoords[NUM_PLANE_VERTEX * 2] =
  18. {
  19.     0, 0,
  20.     1, 0,
  21.     1, 1,
  22.     0, 1
  23. };
  24.  
  25. static const float planeNormals[NUM_PLANE_VERTEX * 3] =
  26. {
  27.     0, 0, 1,
  28.     0, 0, 1,
  29.     0, 0, 1,
  30.     0, 0, 1
  31. };
  32.  
  33. static const unsigned short planeIndices[NUM_PLANE_INDEX] =
  34. {
  35.     0,  1,  2,  0,  2,  3
  36. };
  37.  
  38.  
  39. #endif // _QC_AR_PLANE_H_
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement