Axiom.Demos.Compositor.HdrLogic.CompositorInstanceCreated C# (CSharp) Méthode

CompositorInstanceCreated() public méthode

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
Résultat void
			public override void CompositorInstanceCreated( CompositorInstance newInstance )
			{
				newInstance.MaterialRender += new CompositorInstanceMaterialEventHandler( OnMaterialRender );
				newInstance.MaterialSetup += new CompositorInstanceMaterialEventHandler( OnMaterialSetup );
			}