Ejemplo n.º 1
0
		protected override void OnInitialize()
		{			
			Thread.CurrentThread.Priority = ThreadPriority.Highest;

			SharedEffects.Effects.Add("ImposterFloat", new ImposterFloatEffect());
			SharedEffects.Effects.Add("ImposterFloatPalette", new ImposterFloatPaletteEffect()); 
			SharedEffects.Effects.Add("WarpGridEffect", new WarpGridEffect()); 
			SharedEffects.Effects.Add("Particle2", new ParticleEffect2()); 
			
			base.OnInitialize();
			
			m_Resources.Add(ArtworkStaticObjects.KinectDevices); 

			this.BackgroundColor = new Color4(0, 0, 0, 0);
			
			GameConfiguration.ActiveRegion = new Rectangle(0, 0, WindowWidth, WindowHeight);
						
			m_View = new View3D(GameConfiguration.ActiveRegion, WindowWidth, WindowHeight, (float)Math.PI / 4, 1f);

			ArtworkStaticObjects.View = m_View;
			ArtworkStaticObjects.View.Projection = Matrix.OrthoLH(2, 2, 0, 10);
			ArtworkStaticObjects.View.View = Matrix.Translation(-1, 0, 0); 

			m_SimulationScene = new SimulationScene();
			m_Resources.Add(m_SimulationScene);

			m_SetupScene = new SetupScene();
			m_Resources.Add(m_SetupScene);

			m_SplashScreen = new SplashScreen(m_SetupScene);
			m_SplashScreen.Initialize();
			m_Resources.Add(m_SplashScreen); 		
		}
Ejemplo n.º 2
0
		public SplashScreen(SetupScene setupScene)
		{
			m_SetupScene = setupScene;
			m_PanelControler.PanelChanged += new PanelEvent(m_PanelControler_PanelChanged);
		}