public void initialize(MainWindow mainWindow) { MainWindow = mainWindow; Input = mainWindow.Input; mainWindow.Camera.Position = CameraPosition; RenderManager = MainWindow.RenderManager; initModel(); CreateCubeOutLineGeometry(); }
public MainWindow() { InitializeComponent(); InitScene(); ComponentDispatcher.ThreadIdle += new System.EventHandler(UpdateLogic); ModelManager.LoadModels(); this.MouseDown += OnMouseKey; RenderOptions.ProcessRenderMode = RenderMode.Default; Debug.WriteLine("Render Tier: " + (RenderCapability.Tier >> 16)); Input = new ApplicationInputManager(this); appStateManager = new AppStateManager(this); GameState = new GameState(); RenderManager = new RenderManager(this); appStateManager.addAppState("GameState", GameState); }