Beispiel #1
0
        public void initFile(MainForm.MainForm mainForm)
        {
            progressBarColEditor.Minimum = 0;
            progressBarColEditor.Value   = 0;
            progressBarColEditor.Step    = 1;

            collisionSystem.LoadCLFile(mainForm.renderer.Device, progressBarColEditor);

            Text = "Collision Editor - " + Path.GetFileName(collisionSystem.CurrentCLfileName);
            mainForm.SetCollisionEditorStripItemName(this, Path.GetFileName(collisionSystem.CurrentCLfileName));

            labelFileLoaded.Text = "Loaded " + collisionSystem.CurrentCLfileName;
            labelVertexNum.Text  = "Vertices: " + collisionSystem.NumVertices.ToString();
            labelTriangles.Text  = "Triangles: " + collisionSystem.NumTriangles.ToString();
            labelQuadnodes.Text  = "QuadNodes: " + collisionSystem.NumQuadNodes.ToString();
            if (collisionSystem.DepthLevel != 0)
            {
                numericDepthLevel.Value = collisionSystem.DepthLevel;
            }

            exportOBJToolStripMenuItem.Enabled = true;

            progressBarColEditor.Value = 0;
        }