Microsoft DirectX 8.1 (C++) |
Begins a scene.
HRESULT BeginScene();
None.
If the method succeeds, the return value is D3D_OK.
If the method fails, the return value can be D3DERR_INVALIDCALL.
Applications must call this method before performing any rendering and must call IDirect3DDevice8::EndScene when rendering is complete and before calling BeginScene again.
If the BeginScene method fails, the device was unable to begin the scene, and there is no need to call the IDirect3DDevice8::EndScene method. In fact, calls to EndScene will fail if the previous call to BeginScene failed.
Header: Declared in D3d8.h.
Import Library: Use D3d8.lib.