public virtual void Dispose()
        {
            if (m_overlayEffect != null)
            {
                m_overlayEffect.Dispose();
            }
            if (m_overlayTexture != null)
            {
                m_overlayTexture.Dispose();
            }

            QuadOffset.Dispose();
        }
Exemple #2
0
        public virtual void Dispose()
        {
            Effect.Dispose();

            TilesetTexture.Dispose();

            if (TileTypesTexure != null) // If no step was done, this might still be uninitialized
            {
                TileTypesTexure.Dispose();
                m_tileTypesBuffer.Dispose();
            }

            if (Grid != null) // It is initialized during Draw
            {
                Grid.Dispose();
            }
            if (Cube != null)
            {
                Cube.Dispose();
            }
        }