コード例 #1
0
 private void ResetEffectRenderer()
 {
     if (_effectRenderer != null)
     {
         _effectRenderer.Dispose();
     }
 }
コード例 #2
0
ファイル: Viewer.cs プロジェクト: elix22/Effekseer
        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;
            }
        }
コード例 #3
0
 protected override void Dispose(bool disposing)
 {
     if (_effectRenderer != null)
     {
         _effectRenderer.Dispose();
         Allocator.EffectRenderer.Release(ref _effectRenderer);
     }
 }
コード例 #4
0
ファイル: GameEngine.cs プロジェクト: jl4312/Meteor-Freeze
        /// <summary>
        /// UnloadContent will be called once per game and is the place to unload
        /// all content.
        /// </summary>
        protected override void UnloadContent()
        {
            renderer.Dispose();

            // TODO: Unload any non ContentManager content here
        }