Beispiel #1
0
 public RunaWindow()
 {
     InitializeComponent();
     glView = new RunaView();
     MainViewModel model = new MainViewModel(glView);
     //MainViewModel model = new MainViewModel();
     DataContext = model;
 }
Beispiel #2
0
        public Material(RunaView glView)
        {
            this.glView = glView;

            //model list
            Models = new List <string> {
                "sphere",
                "cube",
                "teapot",
                "TrefoilKnot",
                "Torus",
                "KleinBottle",
                "MobiusStrip",
            };
            this.ModelName = "sphere";
        }
Beispiel #3
0
        public Material(RunaView glView)
        {
            this.glView = glView;

            //model list
            Models = new List<string> {
                "sphere",
                "cube",
                "teapot",
                "TrefoilKnot",
                "Torus",
                "KleinBottle",
                "MobiusStrip",
            };
            this.ModelName = "sphere";
        }
Beispiel #4
0
 /*
 public MainViewModel()
 {
     Model = new TestSimpleTypes2();
     SelectedItem = Model;
 }
  * */
 public MainViewModel(RunaView glView)
 {
     Model = new Material(glView);
     this.SelectedItem = Model;
 }