public void Shutdown() { if (D3D == null) return; D3D.Shutdown(); D3D = null; }
public void Shutdown() { if (D3D == null) { return; } D3D.Shutdown(); D3D = null; }
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; }
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); }