![]() |
![]() |
![]() |
Sprite.OnLostDevice Method |
Language: |
Releases all references to video memory resources and deletes all state blocks.
Visual Basic .NET Public Sub OnLostDevice() C# public void OnLostDevice(); Managed C++ public: void OnLostDevice(); JScript .NET public function OnLostDevice();
This method should be called whenever the device is lost. Before the object can be used again, the device must be reset and the Sprite.OnResetDevice method called.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center