Framework.CreateDeviceFromSettings Method
Language: Visual Basic .NET C# Managed C++ JScript .NET (Show All)
Note: This documentation is preliminary and is subject to change.
Tells the framework to change to a device created from settings described in a DeviceSettings object.
Definition
Visual Basic .NET
Public Sub CreateDeviceFromSettings ( _ ByVal deviceSettings As DeviceSettings , _ ByVal preserveInput As Boolean _ )
C#
public void CreateDeviceFromSettings ( DeviceSettings deviceSettings , bool preserveInput );
Managed C++
public: void CreateDeviceFromSettings ( DeviceSettings *deviceSettings , bool preserveInput );
JScript .NET
public function CreateDeviceFromSettings ( deviceSettings : DeviceSettings , preserveInput : boolean );
Parameters
deviceSettings
Microsoft.Samples.DirectX.UtilityToolkit.DeviceSettings . The DeviceSettings object contains the settings for the new device.
preserveInput
System.Boolean . Set to true if the device settings in the DeviceSettings object will be used without change. Set to false if a valid device will be created with device settings that are as near as possible to the original device settings in the DeviceSettings object.
Remarks
If CreateWindow or SetWindow has not already been called, this method will call CreateWindow with default parameters. Instead of calling this, you can call SetDevice or CreateDevice .
© 2004 Microsoft Corporation. All rights reserved. Terms of use.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center