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 Dispose() { m_eventHandler.UnRegister(); m_eventHandler = null; if (m_graphicsBind != null) { m_graphicsBind.Dispose(); } m_form = null; }