Share via


StateBlock.StateBlock(IDirect3DStateBlock9,Device) Constructor (Microsoft.DirectX.Direct3D)

Initializes a new instance of the StateBlock class.

Definition

Visual Basic Public Sub New( _
    ByVal lp As IDirect3DStateBlock9, _
    ByVal device As Device _
)
C# public StateBlock(
    IDirect3DStateBlock9 lp,
    Device device
);
C++ public:
 StateBlock(
    IDirect3DStateBlock9 lp,
    Devicedevice
);
JScript public function StateBlock(
    lp : IDirect3DStateBlock9,
    device : Device
);

Parameters

lp Microsoft.DirectX.PrivateImplementationDetails.IDirect3DStateBlock9
Unmanaged Component Object Model (COM) IDirect3DStateBlock9 interface pointer.
device Microsoft.DirectX.Direct3D.Device
Reference to the Device associated with the current state block.