示例#1
0
 /// <summary>
 /// Renders next frame.
 /// </summary>
 /// <param name="deltaTime">The time since the last <c>OnRender</c> call.</param>
 public void OnRender(float deltaTime)
 {
     if (parent == null || (parent as IGuiElement).AbsoluteVisible)
     {
         for (int i = 0; i < list.Count; i++)
         {
             IGuiElement element = (IGuiElement)list[i];
             if (element.Visible)
             {
                 element.OnRender(deltaTime);
             }
         }
     }
 }