Applications use the methods of the IDirect3DStateBlock9 interface to encapsulate render states.
Method | Description |
---|---|
IDirect3DStateBlock9::Apply | Apply the state block to the current device state. |
IDirect3DStateBlock9::Capture | Capture the current value of states that are included in a stateblock. |
IDirect3DStateBlock9::GetDevice | Gets the device. |
This interface can be used to save and restore pipeline state. It can also be used to capture the current state.
The LPDIRECT3DSTATEBLOCK9 and PDIRECT3DSTATEBLOCK9 types are defined as pointers to the IDirect3DStateBlock9 interface.
typedef struct IDirect3DStateBlock9 *LPDIRECT3DSTATEBLOCK9, *PDIRECT3DSTATEBLOCK9;
Header: Declared in D3d9.h.
Import Library: Use D3d9.lib.