/// <summary> /// Sets the viewport background colour. /// </summary> /// <param name="colour">Colour.</param> public void SetViewportBackgroundColour(RGBA colour) { lock (this.ReadLock) { FileIniDataParser parser = new FileIniDataParser(); IniData data = parser.ReadFile(GetConfigurationFilePath()); data[General][ViewportBackgroundColour] = colour.ToString(); lock (this.WriteLock) { WriteConfig(parser, data); } } }
/// <summary> /// Sets the wireframe colour for models. /// </summary> /// <param name="colour">Colour.</param> public void SetWireframeColour(RGBA colour) { lock (this.ReadLock) { FileIniDataParser parser = new FileIniDataParser(); IniData data = parser.ReadFile(GetConfigurationFilePath()); data[Model][WireframeColour] = colour.ToString(); lock (this.WriteLock) { WriteConfig(parser, data); } } }
public override string ToString() { return(RGBA.ToString("X8")); }