private void GUIRelease() { //m_windows.Clear(); //m_mainMenu.ClearAllItems(); GUIInternal.Release(); }
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); }
public void Destroy() { if (m_font != null) { m_font.Dispose(); } GUIInternal.Release(); }
public void Init() { GUIInternal.Init(RigelEngineApp.App.MainWindow.EvnetHandler, new EngineGUIGraphicsBind(), m_font); }