public void Load(Matrix4 mtx) { _stack.Pop(); Push(mtx); OnTopMatrixChanged?.Invoke(this, new TopMatrixChangedEventArgs(Top())); }
public void Clear() { _stack.Clear(); _stack.Push(Matrix4.Identity); OnTopMatrixChanged?.Invoke(this, new TopMatrixChangedEventArgs(Top())); }
public Matrix4 Pop() { var ret = _stack.Pop(); OnTopMatrixChanged?.Invoke(this, new TopMatrixChangedEventArgs(Top())); return(ret); }