The pixel format will be this:
dwFVF = D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_DIFFUSE;
and also the flag for the number of texture coordinates:
if (NumTexCoords == 1)
dwFVF |= D3DFVF_TEX1;
else if (NumTexCoords == 2)
dwFVF |= D3DFVF_TEX2;
...
D3D always uses a specific order for the elements. In this case it''s position, normal, diffuse color, then texture coordinates.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement