Exemple #1
0
        static public bool OpenMeshFile(string strFileName)
        {
            Global.bEmptyMesh = true;

            Global.actorMgr.DelAll();
            Global.meshMgr.DelAll();

            MMesh mesh = Global.meshMgr.Add(strFileName, "");

            if (!mesh.Valid)
            {
                OutputText.Print("메쉬를 읽지 못했습니다.");
                return(false);
            }

            int vid = Global.actorMgr.Add(mesh);

            if (vid == -1)
            {
                OutputText.Print("메쉬를 읽지 못했습니다.");
                return(false);
            }
////
////			MActor actor = Global.actorMgr.GetFast(vid);
////
//			OutputText.Print("메쉬를 읽었습니다.");

            Global.bEmptyMesh = false;

            return(true);
        }
Exemple #2
0
        static public bool OpenModelFile(string strFileName)
        {
            if (strFileName == "")
            {
                return(false);
            }

            OutputText.Print("모델 로드");

            return(true);
        }
Exemple #3
0
        private void MainForm_Load(object sender, System.EventArgs e)
        {
            string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "UI.config");

            if (File.Exists(configFile))
            {
                dockManager.LoadFromXml(configFile, new GetContentCallback(GetContentFromPersistString));
            }
            else
            {
                // 기본값
                m_RenderForm.Show(dockManager);
                m_ProjectForm.Show(dockManager);
                m_EditForm.Show(dockManager);
                m_OutputForm.Show(dockManager);
                m_ProjectForm.Activate();
            }

            RefreshMenuItemCheck();

            OutputText.Print("프로그램 초기화가 완료되었습니다.");
        }