Function prototype used by D3DXComputeIMTFromSignal to describe a user-defined signal in an input mesh's u,v space. The function evaluates a procedural signal of dimension uSignalDimension at the provided u,v coordinate.
typedef HRESULT (WINAPI* LPD3DXIMTSIGNALCALLBACK) (CONST D3DXVECTOR2 *uv, UINT uPrimitiveID, UINT uSignalDimension, VOID *pUserData, FLOAT *pfSignalOut);
[in] uv - A pointer to a vector that contains the vertex texture coordinate.
[in] uPrimitiveId - The index of the input triangle on the mesh for which the signal should be calculated.
[in] uSignalDimension - The number of floats to store in the array of signal data (pfSignalOut).
[in] pUserData - The pUserData pointer passed in to D3DXComputeIMTFromSignal.
[out] pfSignalOut - An array of floats, that contains the signal data.
This function must be implemented to return S_OK.
Be sure to specify the Windows Data Types calling convention when declaring the callback function. Otherwise, stack overflows can occur.
Header | d3dx9mesh.h |
---|---|
Import Library | d3dx9.lib |