コード例 #1
0
        private void OnNewDevice()
        {
            if (outSettings != null)
            {
                outSettings.CreateDevice(this, out device, out pParams);
            }

            if (device != null)
            {
                pipeline   = new GraphicsFixedPipeline3D(device);
                deviceFont = new Microsoft.DirectX.Direct3D.Font(device, Font);

                sceneManger = new MoleculeSceneManager(device, outSettings);
            }
            else
            {
            }
        }
コード例 #2
0
        private void OnNewDevice()
        {
            if (outSettings != null)
            {
                outSettings.CreateDevice(this, out device, out pParams);
            }

            if (device != null)
            {
                pipeline   = new GraphicsFixedPipeline3D(device);
                deviceFont = new Microsoft.DirectX.Direct3D.Font(device, Font);

                sceneManger = new MoleculeSceneManager(device, outSettings);
                BallAndStickRenderingScheme scheme = new BallAndStickRenderingScheme(device);
                sceneManger.SetScheme(scheme);
                sceneManger.SetOutputDesc(latestCoDesc);
                sceneManger.OnNewDataSource(atoms, null, new Vector3(), new Bounds3D(new Vector3(), new Vector3(), 3));
            }
            else
            {
            }
        }
コード例 #3
0
        private void OnNewDevice()
        {
            if (outSettings != null)
                outSettings.CreateDevice(this, out device, out pParams);

            if (device != null)
            {
                pipeline = new GraphicsFixedPipeline3D(device);
                deviceFont = new Microsoft.DirectX.Direct3D.Font(device, Font);

                sceneManger = new MoleculeSceneManager(device, outSettings);
            }
            else
            {
            }
        }
コード例 #4
0
        private void OnNewDevice()
        {
            if (outSettings != null)
                outSettings.CreateDevice(this, out device, out pParams);

            if (device != null)
            {
                pipeline = new GraphicsFixedPipeline3D(device);
                deviceFont = new Microsoft.DirectX.Direct3D.Font(device, Font);

                sceneManger = new MoleculeSceneManager(device, outSettings);
                BallAndStickRenderingScheme scheme = new BallAndStickRenderingScheme(device);
                sceneManger.SetScheme(scheme);
                sceneManger.SetOutputDesc(latestCoDesc);
                sceneManger.OnNewDataSource(atoms, null, new Vector3(), new Bounds3D(new Vector3(), new Vector3(), 3));
            }
            else
            {
            }
        }