d3d9.dllExtractToMesh
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXPRTBuffer::ExtractToMesh Method


Extracts coefficient data from a single-channel buffer and adds the data to an ID3DXMesh object.

Syntax

HRESULT ExtractToMesh(      

    UINT NumCoefficients,     D3DDECLUSAGE Usage,     UINT UsageIndexStart,     LPD3DXMESH pScene );

Parameters

NumCoefficients
[in] Number of coefficients to extract from the buffer. When using spherical harmonic (SH) precomputed radiance transfer (PRT), the number of coefficients should be Order2. Order must be in the range of D3DXSH_MINORDER to D3DXSH_MAXORDER, inclusive.
Usage
[in] Vertex usage descriptions of the mesh. See D3DDECLUSAGE.
UsageIndexStart
[in] Starting index for coefficients to be stored in the mesh.
pScene
[in] Pointer to an ID3DXMesh mesh object that will store coefficients.

Return Value

If the method succeeds, the return value is S_OK.

If the method fails, the return value can be one of the following:

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.
E_OUTOFMEMORYMicrosoft Direct3D could not allocate sufficient memory to complete the call.




© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.