Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void
예제 #1
0
        public override void SetClipModel(idClipModel model, float density, int id = 0, bool disposeOld = true)
        {
            if (this.Disposed == true)
            {
                throw new ObjectDisposedException(this.GetType().Name);
            }

            if (model.IsTraceModel == false)
            {
                throw new ArgumentException("model should be a trace model");
            }

            if (density <= 0.0f)
            {
                throw new ArgumentException("density must be valid");
            }

            if ((_clipModel != null) && (_clipModel != model) && (disposeOld == true))
            {
                _clipModel.Dispose();
            }

            _clipModel = model;
            _clipModel.Link(idR.Game.Clip, this.Self, 0, _clipModel.Origin, _clipModelAxis);
        }
예제 #2
0
        public override void SetClipModel(idClipModel model, float density, int id = 0, bool disposeOld = true)
        {
            if (this.Disposed == true)
            {
                throw new ObjectDisposedException(this.GetType().Name);
            }

            if ((_clipModel != null) && (_clipModel != model) && (disposeOld == true))
            {
                _clipModel.Dispose();
            }

            _clipModel = model;

            if (_clipModel != null)
            {
                _clipModel.Link(idR.Game.Clip, _self, 0, _origin, _axis);
            }
        }