Every Immediate-Mode application must call the IDirect3DDevice::BeginScene method before performing any rendering and the IDirect3DDevice::EndScene method when rendering is complete. Your application must use these methods correctly if it is to work with a broad class of forthcoming 3D hardware.
A scene is a collection of all the vertices and drawing primitives (triangles, lines and points) and vertices used to draw a single frame in a movie or animation. IDirect3DDevice::BeginScene marks the beginning of a scene (and, therefore, the start of a frame) and IDirect3DDevice::EndScene marks the end of a scene and frame. All the execute-buffer instructions used to draw a single frame must be bracketed by one call to IDirect3DDevice::BeginScene and one call to IDirect3DDevice::EndScene.
This section discusses the following topics: