internal void Dispose() { if (_submesh != null) { _submesh.Dispose(); _submesh = null; } }
/// <inheritdoc/> protected override void Dispose(bool disposing) { if (!IsDisposed) { if (disposing) { _submesh.Dispose(); } base.Dispose(disposing); } }
protected override void Dispose(bool disposing) { if (disposing) { _effect.Dispose(); _sphere.Dispose(); _torus.Dispose(); _teapot.Dispose(); // Note: We do not dispose the box and the cone because those are shared submeshes!!! } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (disposing) { GameObjectService.Objects.Remove(_cameraObject); GraphicsService.Screens.Remove(_delegateGraphicsScreen); _effect.Dispose(); _sphere.Dispose(); _torus.Dispose(); _teapot.Dispose(); // Note: We do not dispose the box and the cone because those are shared submeshes!!! } base.Dispose(disposing); }