Microsoft DirectX 8.0 (Visual Basic)

D3DDEVICE_CREATION_PARAMETERS

Describes the creation parameters for a device.

Type D3DDEVICE_CREATION_PARAMETERS
    AdapterOrdinal As Long
    BehaviorFlags As Long
    DeviceType As CONST_D3DDEVTYPE
    hFocusWindow As Long
End Type

Members

AdapterOrdinal
Ordinal number that denotes the display adapter. D3DADAPTER_DEFAULT is always the primary display adapter.

Use this ordinal as the Adapter parameter for any of the Direct3D8 methods. Note that different Direct3D8 objects may use different ordinals. For example, adapters can enter and leave a system due to users adding or subtracting monitors from a multiple monitor system, or due to hot-swapping a laptop. Consequently, you should use this ordinal only in a Direct3D8 known to be valid. The only two valid Direct3D8 instances are the Direct3D8 that created this Direct3DDevice8 object and the Direct3D8 returned from Direct3DDevice8.GetDirect3D as called through this Direct3DDevice8 object.

BehaviorFlags
A combination of one or more of the flags that control global behaviors of the Microsoft® Direct3D® device. Possible values are defined by the CONST_D3DCREATEFLAGS enumeration.

The value of this parameter mirrors the value passed to the Direct3D8.CreateDevice call that created this device.

DeviceType
Member of the CONST_D3DDEVTYPE enumeration. Denotes the amount of emulated functionality for this device. The value of this parameter mirrors the value passed to the CreateDevice call that created this device.
hFocusWindow
Window handle to which focus belongs for this Direct3D device. The value of this parameter mirrors the value passed to the CreateDevice call that created this device.

See Also

Direct3DDevice8.GetCreationParameters, Direct3D8.CreateDevice