Microsoft DirectX 8.1 (Visual Basic) |
Creates a Direct3D8 object.
object.Direct3DCreate() As Direct3D8
Returns a Direct3D8 object.
If the method fails, an error is raised and Err.Number is set.
This function succeeds in all cases except out-of-memory conditions. It creates a Direct3D8 object that supports enumeration and enables the creation of Direct3DDevice8 objects.
Note that calling this method samples the current set of active display adapters. If the user dynamically adds adapters, either by adding devices to the desktop or by hot-docking a laptop, then those devices will not be enumerated for the lifetime of this Direct3D8 object. Creating a new Direct3D8 object will expose the new devices.