/// <summary> /// Clears all of the renderer's layout parameter stacks. /// </summary> public void ClearLayoutStacks() { StyleStack.Clear(); FontStack.Clear(); ColorStack.Clear(); GlyphShaderStack.Clear(); LinkStack.Clear(); }
public void PopStyleScope() { var scope = StyleStack.Count; while (FontStack.Count > 0 && FontStack.Peek().Scope == scope) { FontStack.Pop(); } while (ColorStack.Count > 0 && ColorStack.Peek().Scope == scope) { ColorStack.Pop(); } while (GlyphShaderStack.Count > 0 && GlyphShaderStack.Peek().Scope == scope) { GlyphShaderStack.Pop(); } }