/// <summary> /// Implement IDisposable. /// </summary> public override void Dispose() { TK.GL.DeleteTexture(Handle); Handle = -1; IsDisposed = true; InUse.Remove(this); }
/// <summary> /// Implement IDisposable. /// </summary> public void Dispose() { if (Texture != null) { Texture.Dispose(); } Texture = null; Scale = new Vector2(1, 1); tiles.Clear(); TextureName = ""; Name = ""; IsDisposed = true; InUse.Remove(this); GC.SuppressFinalize(this); }
/// <summary> /// /// </summary> public override void Dispose() { IsDisposed = true; InUse.Remove(this); }