Microsoft DirectX 8.1 (C++) |
Validates a mesh for simplification.
HRESULT D3DXValidMesh( LPD3DXMESH pMeshIn, CONST DWORD* pAdjacency, LPD3DXBUFFER* ppErrorsAndWarnings );
If the function succeeds, the return value is D3D_OK.
If the function fails, the return value can be one of the following values.
D3DXERR_INVALIDMESH |
D3DERR_INVALIDCALL |
E_OUTOFMEMORY |
This method validates the mesh by checking for invalid indices and adding another vertex where two fans of triangles share the same vertex.
Error information is available from the debug spew.
Header: Declared in D3dx8mesh.h.
Import Library: Use D3dx8.lib.