sinawear

导航

使用D9的SetFVF无法控制数据字段在内存中的顺序,所有字段的顺序都是固定的。自能选择好用还是不用。

D3DFVF_DIFFUSE是个DWORD哦。4个字节。

 

// Untransformed vertex for unlit, untextured, Gouraud-shaded 
//   content with diffuse material color specified per vertex.
dwFVF = ( D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_DIFFUSE );

不能这样:
dwFVF = ( D3DFVF_XYZ | D3DFVF_DIFFUSE | D3DFVF_NORMAL );

posted on 2012-06-07 17:59  sinawear  阅读(177)  评论(0)    收藏  举报