Exemplo n.º 1
0
        public void Dispose()
        {
            if (CurrentEffect != null)
            {
                CurrentEffect.Dispose();
                CurrentEffect = null;
            }

            if (effectFactory != null)
            {
                effectFactory.Dispose();
                effectFactory = null;
            }

            if (effectSetting != null)
            {
                effectSetting.Dispose();
                effectSetting = null;
            }

            if (EffectRenderer != null)
            {
                EffectRenderer.Dispose();
                EffectRenderer = null;
            }
        }
Exemplo n.º 2
0
        public void Dispose()
        {
            if (CurrentEffect != null)
            {
                CurrentEffect.Dispose();
                CurrentEffect = null;
            }

            if (effectFactory != null)
            {
                effectFactory.Dispose();
                effectFactory = null;
            }
        }