PrtEngine.SetCallback Method

Language:

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 Basic Public 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
);
JScript public 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.

Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center