Exemple #1
0
        private void swapChainPanel_Loaded(object sender, RoutedEventArgs e)
        {
            // Only use Direct3D if outside of the designer
            if (!Windows.ApplicationModel.DesignMode.DesignModeEnabled)
            {
                d3dApp = new D3DApp(this);
                d3dApp.Initialize();

                d3dApp.Camera.Position  = new SharpDX.Vector3(0, 0.5f, 2);
                d3dApp.Camera.LookAtDir = new SharpDX.Vector3(0, 0, -1);// -d3dApp.Camera.Position;
            }
        }
        private void swapChainPanel_Loaded(object sender, RoutedEventArgs e)
        {
            // Only use Direct3D if outside of the designer
            if (!Windows.ApplicationModel.DesignMode.DesignModeEnabled)
            {
                d3dApp = new D3DApp(this);
                d3dApp.Initialize();

                d3dApp.Camera.Position = new SharpDX.Vector3(0, 0.5f, 2);
                d3dApp.Camera.LookAtDir = new SharpDX.Vector3(0, 0, -1);// -d3dApp.Camera.Position;
            }
        }