FRBDK/InstructionEditor/InstructionEditor/Game1.cs
/// <summary>
/// Allows the game to perform any initialization it needs to before starting to run.
/// This is where it can query for any required services and load any non-graphic
/// related content.  Calling base.Initialize will enumerate through any components
/// and initialize them as well.
/// </summary>
Allows the game to perform any initialization it needs to before starting to run.
This is where it can query for any required services and load any non-graphic
related content.  Calling base.Initialize will enumerate through any components
and initialize them as well.
Allows the game to perform any initialization it needs to before starting to run . This is where it can query for any required services and load any non - graphic related content . Calling base . Initialize will enumerate through any components and initialize them as well .
protected override void Initialize()
        {
            FlatRedBallServices.InitializeFlatRedBall(this, this.graphics);
            FlatRedBall.Graphics.Renderer.UseRenderTargets = true;
            SpriteManager.Camera.FarClipPlane = 20000;
            IsMouseVisible = true;
            GuiManager.IsUIEnabled = true;
            this.Window.AllowUserResizing = true;
            mFormMethods = new FormMethods();
            FlatRedBallServices.GraphicsOptions.BackgroundColor = Color.Gray;
            base.Initialize();
        }
protected override void Initialize ( ) { FlatRedBallServices . InitializeFlatRedBall ( this , this . graphics ) ; FlatRedBall . Graphics . Renderer . UseRenderTargets = true ; SpriteManager . Camera . FarClipPlane = 20000 ; IsMouseVisible = true ; GuiManager . IsUIEnabled = true ; this . Window . AllowUserResizing = true ; mFormMethods = new FormMethods ( ) ; FlatRedBallServices . GraphicsOptions . BackgroundColor = Color . Gray ; base . Initialize ( ) ; }
Allows the game to perform any initialization it needs to before starting to run.
Allows the game to perform any initialization it needs to before starting to run .
// Since the application will be using the FlatRedBall GUI the // mouse needs to be visible and the GUI needs to be enabled.