Exemplo n.º 1
0
 /// <summary>Creates a 800x600 window with the specified title.</summary>
 public Program()
     : base(800, 600, GraphicsMode.Default, "UIST Demo")
 {
     int size = 4;
     Vector3[] vertices = new Vector3 [size * size];
     test = new SphericalMesh(150, 70);
     deform = new CalculateDeform(test);
     deform.program = this;
     VSync = VSyncMode.On;
     WindowState = OpenTK.WindowState.Fullscreen;
 }
Exemplo n.º 2
0
 public void SwitchToNextMesh()
 {
     if (test.undoStack.Count == 0)
     {
         lastMeshNum = (lastMeshNum + 1) % 4;
         if (lastMeshNum == 0) test = new SphericalMesh(150, 100);
         if (lastMeshNum == 1) test = new CartesianMesh(100, 100);
         if (lastMeshNum == 2) test = new CylindricalMesh(150, 100);
         if (lastMeshNum == 3) test = new TorusMesh(150, 100);
         deform = new CalculateDeform(test);
         deform.editMode = editMode;
     }
 }