Share via


VertexDeclaration.VertexDeclaration(IDirect3DVertexDeclaration9,Device) Constructor (Microsoft.DirectX.Direct3D)

Creates a new instance of the VertexDeclaration class.

Definition

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

Parameters

lp Microsoft.DirectX.PrivateImplementationDetails.IDirect3DVertexDeclaration9
Unmanaged Component Object Model (COM) IDirect3DVertexDeclaration9 interface pointer.
device Microsoft.DirectX.Direct3D.Device
The Device object to associate with the VertexDeclaration.