/// <summary> /// Initialize static method creates the static Current property and initializes is from the data read from settingsStorage. /// settingsStorage can be provided to read and save user graphics settings. /// </summary> /// <param name="settingsStorage">IDXEngineSettingsStorage that is used to read and save user graphics settings</param> /// <returns>DXEngineSettings</returns> public static DXEngineSettings Initialize(IDXEngineSettingsStorage settingsStorage) { if (_current == null) { _current = new DXEngineSettings(settingsStorage); } return(_current); }
private DXEngineSettings(IDXEngineSettingsStorage settingsStorage) { _settingsStorage = settingsStorage; // Start by using default GraphicsProfile array (used by default in DXView) GraphicsProfiles = new GraphicsProfile[] { GraphicsProfile.NormalQualityHardwareRendering, GraphicsProfile.NormalQualitySoftwareRendering, GraphicsProfile.Wpf3D }; }