Microsoft DirectX 8.1 (Visual Basic) |
Signals Microsoft® Direct3D® to stop recording a device-state block and retrieve a handle to the state block.
object.EndStateBlock() As Long
Variable to be filled with the handle to the completed device state block. This value is used with the Direct3DDevice8.ApplyStateBlock and Direct3DDevice8.DeleteStateBlock methods.
If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL to indicate that the return value is invalid or that the Direct3DDevice8.BeginStateBlock method has not been called.
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
Direct3DDevice8.ApplyStateBlock, Direct3DDevice8.BeginStateBlock, Direct3DDevice8.CaptureStateBlock, Direct3DDevice8.CreateStateBlock, Direct3DDevice8.DeleteStateBlock