Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- VertexFormat FVF_FORMAT = VertexFormat.Position | VertexFormat.Diffuse;
- struct MY_VERTEX
- {
- VertexFormat FVF_FORMAT = VertexFormat.Position | VertexFormat.Diffuse;
- public float X, Y, Z;
- public int Color;
- public MY_VERTEX(float x, float y, float z, int color)
- {
- this.X = -x;
- this.Y = -y;
- this.Z = z;
- this.Color = color;
- }
- VertexFormat FVF_FORMAT = VertexFormat.Position | VertexFormat.Diffuse;
- VertexFormat FVF_FORMAT = VertexFormat.Diffuse | VertexFormat.Position;
- #define D3DFVF_XYZ 0x002
- #define D3DFVF_XYZRHW 0x004
- #define D3DFVF_XYZB1 0x006
- #define D3DFVF_XYZB2 0x008
- #define D3DFVF_XYZB3 0x00a
- #define D3DFVF_XYZB4 0x00c
- #define D3DFVF_XYZB5 0x00e
- #define D3DFVF_XYZW 0x4002
- #define D3DFVF_NORMAL 0x010
- #define D3DFVF_PSIZE 0x020
- #define D3DFVF_DIFFUSE 0x040
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement