PrtEngine.SetCallback(PercentageCompleteCallback,Single) Method (Microsoft.DirectX.Direct3D)

Sets a delegate to an optional callback method that computes the percentage of spherical harmonic (SH) computations completed and gives the caller the option of aborting the simulator.

Definition

Visual BasicPublic Sub SetCallback( _
    ByVal callback As PercentageCompleteCallback, _
    ByVal frequency As Single _
)
C#public void SetCallback(
    PercentageCompleteCallback callback,
    float frequency
);
C++public:
void SetCallback(
    PercentageCompleteCallbackcallback,
    float frequency
);
JScriptpublic function SetCallback(
    callback : PercentageCompleteCallback,
    frequency : float
);

Parameters

callback Microsoft.DirectX.Direct3D.PercentageCompleteCallback
A PercentageCompleteCallback delegate to assign as the callback method.
frequency System.Single
Frequency of callback calls. The inverse of frequency is approximately the number of times the callback method will be called.
Show: