//The below code is entirely wrong. Don't use it
//This is an example of how OFF my vertex DECL was.
//Lets say I learned my lesson and learned some SWEET
//STUFF about D3D in the process
D3DVERTEXELEMENT9 decl[] =
{
{0,
0,
D3DDECLTYPE_FLOAT3,
D3DDECLMETHOD_DEFAULT,
D3DDECLUSAGE_POSITION,
0},
{0,
sizeof(D3DXVECTOR3),
D3DDECLTYPE_D3DCOLOR, /*COLORS!? DELICIOUS!*/
D3DDECLMETHOD_DEFAULT,
D3DDECLUSAGE_COLOR,
0},
{0,
sizeof(D3DXVECTOR3)+sizeof(D3DXCOLOR),/*EW*/
D3DDECLTYPE_FLOAT2,
D3DDECLMETHOD_DEFAULT,
D3DDECLUSAGE_TEXCOORD,
0},
{0,
sizeof(D3DXVECTOR3)+sizeof(D3DXCOLOR)+sizeof(D3DXVECTOR2),/*even more EW*/
D3DDECLTYPE_FLOAT3,
D3DDECLMETHOD_DEFAULT,
D3DDECLUSAGE_NORMAL,
0},
D3DDECL_END()
};
Monday, February 8, 2010
Vertex Decls :(
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment