Share via


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

Initializes a new instance of the StateBlock class.

Definition

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

Parameters

device Microsoft.DirectX.Direct3D.Device
Reference to the Device associated with the current state block.
stateBlockType Microsoft.DirectX.Direct3D.StateBlockType
Member of the StateBlockType enumeration that specifies the state block type.