Advertisement
Guest User

Untitled

a guest
Apr 21st, 2014
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. VertexFormat FVF_FORMAT = VertexFormat.Position | VertexFormat.Diffuse;
  2.  
  3. struct MY_VERTEX
  4. {
  5. VertexFormat FVF_FORMAT = VertexFormat.Position | VertexFormat.Diffuse;
  6.  
  7.  
  8. public float X, Y, Z;
  9. public int Color;
  10.  
  11. public MY_VERTEX(float x, float y, float z, int color)
  12. {
  13. this.X = -x;
  14. this.Y = -y;
  15. this.Z = z;
  16. this.Color = color;
  17. }
  18.  
  19. VertexFormat FVF_FORMAT = VertexFormat.Position | VertexFormat.Diffuse;
  20. VertexFormat FVF_FORMAT = VertexFormat.Diffuse | VertexFormat.Position;
  21.  
  22. #define D3DFVF_XYZ 0x002
  23. #define D3DFVF_XYZRHW 0x004
  24. #define D3DFVF_XYZB1 0x006
  25. #define D3DFVF_XYZB2 0x008
  26. #define D3DFVF_XYZB3 0x00a
  27. #define D3DFVF_XYZB4 0x00c
  28. #define D3DFVF_XYZB5 0x00e
  29. #define D3DFVF_XYZW 0x4002
  30.  
  31. #define D3DFVF_NORMAL 0x010
  32. #define D3DFVF_PSIZE 0x020
  33. #define D3DFVF_DIFFUSE 0x040
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement