|
我的定点定义如下
// A structure for our custom vertex type
struct CUSTOMVERTEX
{
FLOAT x, y, z; // The untransformed, 3D position for the vertex
D3DXVECTOR3 normal; // the normal coordinate
FLOAT tu,tv; // The vertex color
};
// Our custom FVF, which describes our custom vertex structure
#define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_TEX1)
赋值部分:
D3DXVECTOR3 upNormal(0.0f,1.0f,0.0f);
CUSTOMVERTEX g_Vertices[] =
{
{-2, 2, -2, upNormal,0,0},
{ 2, 2, -2, upNormal,0,1},
}
但是这个赋值部分编译就是不能通过,好像是我的D3DXVECTOR3 部分有问题,但是我怎么也找不出来,恳请各位大侠帮忙看看,谢谢了!
|
|