|
|
PBYTE pbPoint = NULL;
PBYTE pbCur;
UINT iPoint;
UINT cVertices = 0;
DWORD fvfsize = D3DXGetFVFVertexSize(pframeCur->pmcMesh->pMesh->GetFVF());
cVertices = pframeCur->pmcMesh->pMesh->GetNumVertices();
pframeCur->pmcMesh->pMesh->LockVertexBuffer(0, &pbPoint);
for( iPoint=0, pbCur = pbPoint; iPoint < cVertices; iPoint++, pbCur += fvfsize )
{
pvCur = (D3DXVECTOR3*)pbCur;
pvCur->y += 20.0f;
}
pframeCur->pmcMesh->pMesh->UnlockVertexBuffer(); |
|