public virtual void Dispose() { if (m_overlayEffect != null) { m_overlayEffect.Dispose(); } if (m_overlayTexture != null) { m_overlayTexture.Dispose(); } QuadOffset.Dispose(); }
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(); } }