?/TD> |
Microsoft DirectX 9.0 |
Ends a scene that was begun by calling the IDirect3DDevice9::BeginScene method.
Syntax
HRESULT EndScene(VOID);
Return Value
If the method succeeds, the return value is D3D_OK.
D3DERR_INVALIDCALL The method failed because EndScene was called before BeginScene.
Remarks
When this method succeeds, the scene has been queued up for rendering by the driver. This is not a synchronous method, so the scene is not guaranteed to have completed rendering when this method returns.
When scene rendering begins successfully, you must call this method before you can call the IDirect3DDevice9::BeginScene method to start rendering another scene. If a prior call to IDirect3DDevice9::BeginScene method fails, the scene did not begin and this method should not be called.
See Also
IDirect3DDevice9::BeginScene