예제 #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();
            }
        }
예제 #2
0
 internal static void End()
 {
     LGuiFrame.End();
     LGuiGraphics.RestoreCurrentLevel();
 }