internal void Dispose()
 {
     if (_submesh != null)
     {
         _submesh.Dispose();
         _submesh = null;
     }
 }
Ejemplo n.º 2
0
        /// <inheritdoc/>
        protected override void Dispose(bool disposing)
        {
            if (!IsDisposed)
            {
                if (disposing)
                {
                    _submesh.Dispose();
                }

                base.Dispose(disposing);
            }
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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);
        }