Ejemplo n.º 1
0
        internal static void End()
        {
            LGuiGraphics.SetTargetCommandList(null);

            SortWindowList();
            if (SortedWindowID_.Count > 0)
            {
                SortedWindowID_.Sort((Left, Right) =>
                {
                    if (WindowList_[Left].Order < WindowList_[Right].Order)
                    {
                        return(-1);
                    }

                    if (WindowList_[Left].Order > WindowList_[Right].Order)
                    {
                        return(1);
                    }

                    return(0);
                });

                LGuiGraphics.SetCurrentLevel(LGuiCommandLevel.Window);

                foreach (var ID in SortedWindowID_)
                {
                    LGuiGraphics.AddCommandList(WindowList_[ID].DrawList);
                }

                LGuiGraphics.RestoreCurrentLevel();
            }
        }
Ejemplo n.º 2
0
 public static void AddCommandList(ILGuiCommandList CommandList)
 {
     LGuiGraphics.AddCommandList(CommandList);
 }