关于DX中顶点的定义
这两种定义有啥区别啊,为啥效果不一样啊?
求大神指点。。。
struct Vertex
{
float x, y, z;
DWORD color;
float u, v;
Vertex(float _x, float _y, float _z, float _u, float _v, DWORD _color)
{
x = _x; y = _y; z = _z;
u = _u; v = _v;
color = _color;
}
static const DWORD FVF = D3DFVF_XYZ | D3DFVF_TEX1 | D3DFVF_DIFFUSE;
};
struct Vertex
{
float x, y, z;
float u, v;
DWORD color;
Vertex(float _x, float _y, float _z, float _u, float _v, DWORD _color)
{
x = _x; y = _y; z = _z;
u = _u; v = _v;
color = _color;
}
static const DWORD FVF = D3DFVF_XYZ | D3DFVF_TEX1 | D3DFVF_DIFFUSE;
};