Framework.SetDevice Method |
Language: |
Sets an existing Microsoft Direct3D Device for use by the sample framework.
Visual Basic Public Sub SetDevice( _
ByVal device As Device _
)C# public void SetDevice(
Device device
);C++ public:
void SetDevice(
Device^ device
);JScript public function SetDevice(
device : Device
);
device Microsoft.DirectX.Direct3D.Device
The Direct3D Device the sample framework is to use.
If the CreateWindow method has not already been called, it will call it with the default parameters. Instead of calling SetDevice, you can call CreateDevice method or CreateDeviceFromSettings method.
The application can call this method after a device has already been created to change the current device.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center