IDirect3DRMMeshBuilder::ReserveSpace

HRESULT ReserveSpace(DWORD vertexCount, DWORD normalCount,

DWORD faceCount);

Reserves space within a Direct3DRMMeshBuilder object for the specified number of vertices, normals, and faces. This allows the system to use memory more efficiently.

·Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.

vertexCount, normalCount, and faceCount

Number of vertices, normals, and faces to allocate space for.