Beispiel #1
0
        private void GUIRelease()
        {
            //m_windows.Clear();
            //m_mainMenu.ClearAllItems();

            GUIInternal.Release();
        }
Beispiel #2
0
        public void Init()
        {
            //basis
            m_form = RigelEditorApp.Instance.Form;


            m_dockMgr = new GUIDockMgr();

            m_eventHandler = new GUIEventHandlerSharpDX();
            m_eventHandler.RegisterEvent(m_form);

            ClientWidth  = m_form.Width;
            ClientHeight = m_form.Height;

            //m_windows = new List<RigelEGUIWindow>();

            //m_mainMenu = new RigelEGUIMenu();
            //RefreshMainMenu();

            //m_dockerMgr = new RigelEGUIDockerManager();

            //RigelEGUI.InternalResetContext(this);


            m_graphicsBind = new GUIGraphicsBindSharpDX(EditorGraphicsManager.Instance.Graphics);
            m_font         = new FontInfo("arial.ttf");
            m_graphicsBind.CrateFontTexture(m_font);

            GUIInternal.Init(m_eventHandler, m_graphicsBind, m_font);
        }
Beispiel #3
0
 public void Destroy()
 {
     if (m_font != null)
     {
         m_font.Dispose();
     }
     GUIInternal.Release();
 }
Beispiel #4
0
 public void Init()
 {
     GUIInternal.Init(RigelEngineApp.App.MainWindow.EvnetHandler, new EngineGUIGraphicsBind(), m_font);
 }