示例#1
0
        public void BeforeLayout()
        {
            m_viewportSize = new Vector2(Window.Width, Window.Height);

            // reset values which are changed during layouting
            m_verticalOffset = 0;
            m_menuIndex      = 0;
            m_menuXOffset    = 0;

            // Mark all items for deletion:
            //  if they get used this frame they'll survive.
            foreach (var menu in m_menus)
            {
                menu.SetUnused();
            }
            foreach (var wpair in m_windows)
            {
                wpair.Value.SetUnused();
            }

            m_grq    = new GuiRenderQueue(m_viewportSize);
            m_active = true;
        }
示例#2
0
 public void Render()
 {
     m_grq.Process(true);
     m_grq = null;
 }