RenderToEnvironmentMap.OnResetDevice Method |
Language: |
Should be called after a device is reset and before any other methods are called, if Device.IsUsingEventHandlers is set to false.
Visual Basic Public Sub OnResetDevice() C# public void OnResetDevice(); C++ public:
void OnResetDevice();JScript public function OnResetDevice();
Because Device.IsUsingEventHandlers is set to true by default, under normal circumstances it is unnecessary to call RenderToEnvironmentMap.OnResetDevice. However, if at any point Device.IsUsingEventHandlers is set to false, RenderToEnvironmentMap.OnResetDevice should be called immediately after the device is reset.
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