in a DirectX transformed structure:
struct TransformedVertex
{
float X;
float Y;
float Z;
float Rhw;
}
1. is this the correct order for floats in the structure? On msdn, they just say that the order is: float, float, float, float.
2. what the heck is Rhw for???
3. Say I wanted to combine the D3DFVF_XYZRHW flag with the D3DFVF_DIFFUSE flag. Would the order of the structure elements be, the way I passed the flags in? in this case:
struct TransformedVertex
{
float X;
float Y;
float Z;
float Rhw;
DWORD color;
}
Thanks in advance.