|
if(FAILED(g_pD3DDevice->CreateVertexBuffer
(3* sizeof (CUSTOMVERTEX), 0, D3DFVF_CUSTOMVERTEX, D3DPOOL_DEFAULT, &g_pVertexBuffer)))
{
return E_FAIL;
}
if(FAILED(g_pVertexBuffer->Lock(0, sizeof(cvVertices),
(BYTE**)&pVertices, 0)))
{
return E_FAIL;
}
以上地方发生错误:error C2065: 'D3DFVF_DIFFUS' : undeclared identifier
我找不到错误中指出的'D3DFVF_DIFFUS' ,
请问这是什么错误?和sdk有关系吗?这个程序是directX8的例子,我用的directx9的sdk [em4] [em4] [em4] |
|