コード例 #1
0
        public void Load(Matrix4 mtx)
        {
            _stack.Pop();
            Push(mtx);

            OnTopMatrixChanged?.Invoke(this, new TopMatrixChangedEventArgs(Top()));
        }
コード例 #2
0
        public void Clear()
        {
            _stack.Clear();
            _stack.Push(Matrix4.Identity);

            OnTopMatrixChanged?.Invoke(this, new TopMatrixChangedEventArgs(Top()));
        }
コード例 #3
0
        public Matrix4 Pop()
        {
            var ret = _stack.Pop();

            OnTopMatrixChanged?.Invoke(this, new TopMatrixChangedEventArgs(Top()));
            return(ret);
        }