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

                base.Dispose(disposing);
            }
        }
예제 #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);
        }
예제 #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);
        }