Platform SDK: DirectX |
The Direct3D7.CreateDevice method creates a Direct3D device to be used with the DrawPrimitive methods.
object.CreateDevice( _ guid As String, _ surf As DirectDrawSurface7) As Direct3DDevice7
If the method succeeds, the return value is a reference to a Direct3DDevice7 object.
If the method fails, an error is raised and Err.Number may be set to DDERR_INVALIDPARAMS if one of the parameters is invalid.
All rendering devices created by a given Direct3D7 object share the same physical resources. Although your application can create multiple rendering devices from a single Direct3D7 object, because they share the same hardware, extreme performance penalties will be incurred.
When you call Direct3D7.CreateDevice, you create a device object that is separate from a DirectDraw surface object. This device uses a DirectDraw surface as a rendering target.
Direct3DDevice7, Creating a Direct3D Device, Direct3D Devices