Share via


Surface.Surface(IDirect3DSurface9,Object) Constructor (Microsoft.DirectX.Direct3D)

Initializes a new instance of the Surface class.

Definition

Visual Basic Public Sub New( _
    ByVal lp As IDirect3DSurface9, _
    ByVal device As Object _
)
C# public Surface(
    IDirect3DSurface9 lp,
    object device
);
C++ public:
 Surface(
    IDirect3DSurface9 lp,
    ObjectLeave Sitedevice
);
JScript public function Surface(
    lp : IDirect3DSurface9,
    device : ObjectLeave Site
);

Parameters

lp Microsoft.DirectX.PrivateImplementationDetails.IDirect3DSurface9
Unmanaged Component Object Model (COM) IDirect3DSurface9 interface pointer.
device System.Object
Object reference of the device associated with the surface.