Inheritance: ObservableBase
 public ViewportViewModel(RenderCore core)
 {
     RenderSystem = new RenderSystem(core);
     if (!RenderSystem.Initialize())
     {
         Application.Current.Shutdown();
     }
 }
        public MainWindowViewModel()
        {
            RenderCore = new RenderCore();
            ViewportViewModel = new ViewportViewModel(RenderCore);
            ImporterTool = new ImporterToolViewModel(this, RenderCore);
            TextureTool = new TexturesToolViewModel(this, RenderCore);
            AnimationTool = new AnimationToolViewModel(this);
            ViewportTool = new ViewportToolViewModel();

            TextureTool.HideTool();
            AnimationTool.HideTool();
            ViewportTool.HideTool();

            // Set default tick timer
            m_tickTimer = new Timer(new TimerCallback(this.Tick), null, 0, 16);
            m_previousDeltaQuery = DateTime.Now;
        }
 public TexturesToolViewModel(MainWindowViewModel mainWindowModelView, RenderCore renderCore)
 {
     m_mainWindowModelView = mainWindowModelView;
     Core = renderCore;
 }
 public ImporterToolViewModel(MainWindowViewModel mainWindowViewModel, RenderCore theCore)
 {
     core = theCore;
     m_mainWindow = mainWindowViewModel;
 }
Example #5
0
 public RenderSystem(RenderCore theCore)
 {
     core = theCore;
 }