IDirect3DStateBlock9 interface (d3d9helper.h)
Applications use the methods of the IDirect3DStateBlock9 interface to encapsulate render states.
Inheritance
The IDirect3DStateBlock9 interface inherits from the IUnknown interface. IDirect3DStateBlock9 also has these types of members:
Methods
The IDirect3DStateBlock9 interface has these methods.
| IDirect3DStateBlock9::Apply Apply the state block to the current device state. (IDirect3DStateBlock9.Apply) |
| IDirect3DStateBlock9::Capture Capture the current value of states that are included in a stateblock. (IDirect3DStateBlock9.Capture) |
| IDirect3DStateBlock9::GetDevice Gets the device. (IDirect3DStateBlock9.GetDevice) |
Remarks
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;
Requirements
| Target Platform | Windows |
| Header | d3d9helper.h (include D3D9.h) |