Microsoft DirectX 8.1 (Visual Basic) |
Presents the contents of the next in the sequence of back buffers owned by the swap chain.
object.Present( _ SourceRect As Any, _ DestRect As Any, _ DestWindowOverride As Long, _ DirtyRegion As Any)
If the method fails, an error is raised and Err.Number can be set to one of the following values.
D3DERR_INVALIDCALL |
D3DERR_OUTOFVIDEOMEMORY |
E_OUTOFMEMORY |
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
If necessary, a stretch operation is applied to transfer the pixels within the source rectangle to the destination rectangle in the client area of the target window.
The following code fragment shows how to call the default case for Present.
Dim swapChain As Direct3DSwapChain8 swapChain.Present ByVal 0, ByVal 0, 0, ByVal 0
For the default case, note that you must specify ByVal 0 for the parameters that expect type Any. If you specify 0 (zero) for a parameter of type Any, an error will be generated and the method will fail.