|
|
我现在有点疑惑,到底VERTEX的结构是怎么用的,有时书里用:
struct CUSTOMVERTEX
{
FLOAT x, y, z,zxh; // the transformed, 3D position for the vertex
DWORD color; // the vertex color
};
有时又用(去掉了zxh)
struct CUSTOMVERTEX
{
FLOAT x, y, z; // the transformed, 3D position for the vertex
DWORD color; // the vertex color
};
如果我用第一种结构初始化是没什么问题,但用第二种的话,颜色值就不对。 |
|