public override void Dispose() { if (timer != null) { OgreDotNet.PlatformManager.getSingleton().destroyTimer(timer); } timer = null; base.Dispose(); }
public HeatVisionListener() { this.SubscribeEvents(); this.evtNotifyMaterialRender += new CompositorInstanceListenerDirector.CILD_Delegate(notifyMaterialRender); this.evtNotifyMaterialSetup += new CompositorInstanceListenerDirector.CILD_Delegate(notifyMaterialSetup); timer = OgreDotNet.PlatformManager.getSingleton().createTimer(); start = end = curr = 0.0f; }