Microsoft DirectX 8.0 (Visual Basic) |
Deletes a previously recorded device-state block.
object.DeleteStateBlock( _ Token As Long)
If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.
D3DERR_INVALIDCALL |
D3DERR_OUTOFVIDEOMEMORY |
Err.Number may be set to D3DERR_INVALIDCALL to indicate that the Token parameter is invalid or a macro is currently being recorded.
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
The value &hFFFFFFFF& is an invalid state block handle.
Applications cannot delete a device-state block while another is being recorded
Direct3DDevice8.ApplyStateBlock, Direct3DDevice8.BeginStateBlock, Direct3DDevice8.CaptureStateBlock, Direct3DDevice8.CreateStateBlock, Direct3DDevice8.EndStateBlock