コード例 #1
0
ファイル: GraphicsClass.cs プロジェクト: Earthmark/RenderTest
        public void Shutdown()
        {
            if (D3D == null)
                return;

            D3D.Shutdown();
            D3D = null;
        }
コード例 #2
0
        public void Shutdown()
        {
            if (D3D == null)
            {
                return;
            }

            D3D.Shutdown();
            D3D = null;
        }
コード例 #3
0
ファイル: GraphicsClass.cs プロジェクト: Earthmark/RenderTest
        public bool Initialize(SystemConfiguration configuration, IntPtr windowHandle)
        {
            try
            {
                // Create the Direct3D object.
                D3D = new DX11Class();
                // Initialize the Direct3D object.
                D3D.Initialize(configuration, windowHandle);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Could not initialize Direct3D\nError is '" + ex.Message + "'");
                return false;
            }

            return true;
        }
コード例 #4
0
        public bool Initialize(SystemConfiguration configuration, IntPtr windowHandle)
        {
            try
            {
                // Create the Direct3D object.
                D3D = new DX11Class();
                // Initialize the Direct3D object.
                D3D.Initialize(configuration, windowHandle);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Could not initialize Direct3D\nError is '" + ex.Message + "'");
                return(false);
            }

            return(true);
        }