/// <summary> /// Push a copy of the current state set onto the stack. /// </summary> /// <param name="mergedState"> /// A <see cref="GraphicsStateSet"/> to be merged on current render state set after having pushed it /// onto the stack. /// </param> public void Push(GraphicsStateSet mergedState) { if (IsDisposed) { throw new ObjectDisposedException("GraphicsStateSetStack"); } if (mergedState == null) { throw new ArgumentNullException("mergedState"); } // Push the current state onto the stack Push(); // Merge current state with the specified one Current.Merge(mergedState); }