Exemplo n.º 1
0
        /// <summary>
        /// Destroy this object
        /// </summary>
        public void Dispose()
        {
            if (mBasicEffect != null)
            {
                mBasicEffect.Dispose();
            }

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

#if !MONOGAME
            if (mDualTextureEffect != null)
            {
                mDualTextureEffect.Dispose();
            }
#endif

#if !MONOGAME
            if (mEnvironmentMapEffect != null)
            {
                mEnvironmentMapEffect.Dispose();
            }
#endif

#if !MONOGAME
            if (mSkinnedEffect != null)
            {
                mSkinnedEffect.Dispose();
            }
#endif
        }
 public override void Cleanup(GraphicFactory factory)
 {
     effect.Dispose();
     base.Cleanup(factory);
 }