Axiom.Samples.SampleContext.Reconfigure C# (CSharp) Метод

Reconfigure() защищенный Метод

Reconfigures the context. Attempts to preserve the current sample state.
protected Reconfigure ( String renderer, NameValuePairList options ) : void
renderer String
options NameValuePairList
Результат void
		protected virtual void Reconfigure( String renderer, NameValuePairList options )
		{
			// save current sample state
			this.LastSample = CurrentSample;
			if ( CurrentSample != null )
				CurrentSample.SaveState( this.LastSampleState );

			this.NextRenderer = renderer;
			Axiom.Graphics.RenderSystem rs = this.Root.RenderSystems[ renderer ];

			// set all given render system options
			foreach ( var option in options )
			{
				rs.ConfigOptions[ option.Key ].Value = option.Value;
			}

			this.IsLastRun = false;            // we want to go again with the new settings
			this.Root.QueueEndRendering();   // break from render loop
		}