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

            // TODO postScreenMenuShader = new PostScreenMenu();
            // TODO postScreenGameShader = new PostScreenGlow();
            // TODO skyCube = new PreScreenSkyCubeMapping();
            lensFlare = new LensFlare(LensFlare.DefaultSunPos);
            BaseGame.LightDirection = LensFlare.DefaultLightPos;
        }
        /// <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;

            nameBatch = new SpriteBatch(RacingGameManager.graphicsManager.GraphicsDevice);
            nameFont  = RacingGameManager.Content.Load <SpriteFont>("Content\\NameFont");
        }
        /// <summary>
        /// Create user interface renderer
        /// </summary>
        public UIRenderer()
        {
            background = new Texture("background.png");
            buttons    = new Texture("buttons.png");
            headers    = new Texture("headers.png");

            helpScreen    = new Texture("HelpScreenWindows.png");
            optionsScreen = new Texture("OptionsScreenWindows.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;
        }
        /// <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;
        }
Example #5
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()