Axiom.Overlays.Elements.Panel.UpdateRenderQueue C# (CSharp) Method

UpdateRenderQueue() public method

public UpdateRenderQueue ( RenderQueue queue ) : void
queue Axiom.Graphics.RenderQueue
return void
		public override void UpdateRenderQueue( RenderQueue queue )
		{
			if ( isVisible )
			{
				// only add this panel to the render queue if it is not transparent
				// that would mean the panel should be a virtual container of sorts,
				// and the children would still be rendered
				if ( !isTransparent && material != null )
				{
					base.UpdateRenderQueue( queue, false );
				}

				foreach ( OverlayElement child in children.Values )
				{
					child.UpdateRenderQueue( queue );
				}
			}
		}