|
|
发表于 2005-9-8 11:09:00
|
显示全部楼层
Re:谁能解释一下FVF的标旗
你看不明白不要紧,你只要明白格式就行。比如:
D3DFVF_DIFFUSE
Vertex format includes a diffuse color component.
DWORD in ARGB order. See D3DCOLOR_ARGB.
它告诉你这个是个DWORD,而且是ARGB顺序,如果你使用了这个标志,那么对应的位置上就必须有个DWORD(这个是漫反射光)
D3DFVF_XYZW
Vertex format contains transformed and clipped (x, y, z, w) data. ProcessVertices does not invoke the clipper, instead outputting data in clip coordinates. This constant is designed for, and can only be used with, the programmable vertex pipeline.
float, float, float, float
上面这个对应4个浮点数(是投影变换后的坐标系) |
|