D3DXComputeBoundingSphere
Computes a bounding sphere.
HRESULT D3DXComputeBoundingSphere(
PVOID pvPointsFVF,
DWORD NumVertices,
DWORD FVF,
D3DXVECTOR3* pCenter,
FLOAT* pRadius
);
Parameters
- pvPointsFVF
- [in] Pointer to a buffer containing the vertex data around which to calculate the bounding sphere.
- NumVertices
- [in] Number of vertices.
- FVF
- [in] Combination of Flexible Vertex Format Flags that describes the vertex format.
- pCenter
- [out] D3DXVECTOR3 structure, defining the coordinate center of the returned bounding sphere.
- pRadius
- [out] Radius of the returned bounding sphere.
Return Values
If the function succeeds, the return value is D3D_OK.
If the function fails, the return value can be one D3DERR_INVALIDCALL.
Requirements
Header: Declared in D3dx8mesh.h.
Import Library: Use D3dx8.lib.