Axiom.Demos.Compositor.HdrLogic.CompositorInstanceCreated C# (CSharp) Method

CompositorInstanceCreated() public method

Called when a compositor instance has been created.
This happens after its setup was finished, so the chain is also accessible. This is an ideal method to automatically attach a compositor listener.
public CompositorInstanceCreated ( CompositorInstance newInstance ) : void
newInstance Axiom.Graphics.CompositorInstance
return void
			public override void CompositorInstanceCreated( CompositorInstance newInstance )
			{
				newInstance.MaterialRender += new CompositorInstanceMaterialEventHandler( OnMaterialRender );
				newInstance.MaterialSetup += new CompositorInstanceMaterialEventHandler( OnMaterialSetup );
			}