/// <summary> /// Retrieves the top RenderState from stack</summary> /// <returns>Top RenderState in stack</returns> public RenderState Peek() { if (m_contents.Count == 0) { return(null); } RenderState topOfStack = m_contents[m_contents.Count - 1]; return(topOfStack.Clone() as RenderState); }