Share via


Surface.Surface(Device,Stream,Pool) Constructor (Microsoft.DirectX.Direct3D)

Initializes a new instance of the Surface class.

Definition

Visual Basic Public Sub New( _
    ByVal device As Device, _
    ByVal data As StreamLeave Site, _
    ByVal pool As Pool _
)
C# public Surface(
    Device device,
    StreamLeave Site data,
    Pool pool
);
C++ public:
 Surface(
    Devicedevice,
    StreamLeave Sitedata,
    Pool pool
);
JScript public function Surface(
    device : Device,
    data : StreamLeave Site,
    pool : Pool
);

Parameters

device Microsoft.DirectX.Direct3D.Device
Reference to the Device associated with the surface.
data System.IO.Stream
Reference to a StreamLeave Site object that contains image data for the surface.
pool Microsoft.DirectX.Direct3D.Pool
A Pool object that defines the memory class of the surface.