Beispiel #1
0
        /// <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);
                }
            }
        }
Beispiel #2
0
        /// <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);
                }
            }
        }
Beispiel #3
0
 public override string ToString()
 {
     return(RGBA.ToString("X8"));
 }