Begin/End Scene
The last bit of information to mention is that all drawing methods must be called inside an IDirect3DDevice9::BeginSceneand IDirect3DDevice9::EndScenepair. For example, we would write:
_device->BeginScene();_device->DrawPrimitive(...);
_device->EndScene();