Axiom.Graphics.Material.NotifyNeedsRecompile C# (CSharp) Method

NotifyNeedsRecompile() private method

Tells the material that it needs recompilation.
private NotifyNeedsRecompile ( ) : void
return void
		internal void NotifyNeedsRecompile()
		{
			this._compilationRequired = true;

			// Also need to unload to ensure we loaded any new items
			if ( this.IsLoaded ) // needed to stop this being called in 'loading' state
			{
				this.unload();
			}
		}

Usage Example

 /// <summary>
 ///    Forces this Technique to recompile.
 /// </summary>
 /// <remarks>
 ///    The parent Material is asked to recompile to accomplish this.
 /// </remarks>
 internal void NotifyNeedsRecompile()
 {
     // Disable require to recompile when splitting illumination passes
     if (illuminationPassesCompilationPhase != IlluminationPassesState.CompileDisabled)
     {
         parent.NotifyNeedsRecompile();
     }
 }