packages/Windows API Code Pack 1.1/source/Samples/DirectX/CS/Direct3D10/Tutorial09/D3D10Tutorial09_WinFormsControl/TutorialWindow.cs
/// <summary>
/// Create Direct3D device and swap chain
/// </summary>
Create Direct3D device and swap chain
Create Direct3D device and swap chain
protected void InitDevice()
        {
            device = D3DDevice.CreateDeviceAndSwapChain(directControl.Handle);
            swapChain = device.SwapChain;
            SetViews();
            meshManager = new XMeshManager(device);
            mesh = meshManager.Open("Media\\Tiger\\tiger.x");
            InitMatrices();
        }
protected void InitDevice ( ) { device = D3DDevice . CreateDeviceAndSwapChain ( directControl . Handle ) ; swapChain = device . SwapChain ; SetViews ( ) ; meshManager = new XMeshManager ( device ) ; mesh = meshManager . Open ( " \\ \\ " ) ; InitMatrices ( ) ; }
Create Direct3D device and swap chain
Create Direct3D device and swap chain