/// <summary>
        /// Create user interface renderer
        /// </summary>
        public UIRenderer()
        {
            background = new Texture("background.png");
            buttons = new Texture("buttons.png");
            headers = new Texture("headers.png");
#if XBOX360
            helpScreen = new Texture("HelpScreenXbox360.png");
            optionsScreen = new Texture("OptionsScreenXbox360.png");
#else
            helpScreen = new Texture("HelpScreenWindows.png");
            optionsScreen = new Texture("OptionsScreenWindows.png");
#endif
            mouseCursor = new Texture("MouseCursor.png");
            ingame = new Texture("Ingame.png");
            trophies[0] = new Texture("pokal1");
            trophies[1] = new Texture("pokal2");
            trophies[2] = new Texture("pokal3");
            font = new TextureFont();

            postScreenMenuShader = new PostScreenMenu();
            postScreenGameShader = new PostScreenGlow();
            skyCube = new PreScreenSkyCubeMapping();
            lensFlare = new LensFlare(LensFlare.DefaultSunPos);
            BaseGame.LightDirection = LensFlare.DefaultLightPos;
        }
예제 #2
0
		} // SkyCubeMapTexture
		#endregion

		#region Constructor
		/// <summary>
		/// Create user interface renderer
		/// </summary>
		public UIRenderer()
		{
			splashLogos[0] = new Texture("logoonly_xna");
			splashLogos[1] = new Texture("logoonly_exdream");
			splashLogos[2] = new Texture("logoonly_microsoft");

			background = new Texture("background.png");
			buttons = new Texture("buttons.png");
			logos = new Texture("logos.png");
			helpScreen = new Texture("HelpScreen.png");
			optionsScreen = new Texture("OptionsScreen.png");
			creditsScreen = new Texture("CreditsScreen.png");
			mouseCursor = new Texture("MouseCursor.png");
			ingame = new Texture("Ingame.png");
			trophies[0] = new Texture("pokal1");
			trophies[1] = new Texture("pokal2");
			trophies[2] = new Texture("pokal3");
			font = new TextureFont();

			postScreenMenuShader = new PostScreenMenu();
			postScreenGameShader = new PostScreenGlow();
			skyCube = new PreScreenSkyCubeMapping();
			lensFlare = new LensFlare(LensFlare.DefaultSunPos);
			BaseGame.LightDirection = LensFlare.DefaultLightPos;
		} // UIRenderer()
 /// <summary>
 /// Dispose
 /// </summary>
 /// <param name="someObject">Some object</param>
 public static void Dispose(ref PreScreenSkyCubeMapping someObject)
 {
     if (someObject != null)
         someObject.Dispose();
     someObject = null;
 }
        /// <summary>
        /// Test sky cube mapping
        /// </summary>
        //[Test]
        public static void TestSkyCubeMapping()
        {
            PreScreenSkyCubeMapping skyCube = null;

            TestGame.Start("TestSkyCubeMapping",
                delegate
                {
                    skyCube = new PreScreenSkyCubeMapping();
                },
                delegate
                {
                    skyCube.RenderSky();
                });
        }