FRBDK/SplineEditor/SplineEditor/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);
            bool runAsFastAsPossible = false;
            if (runAsFastAsPossible)
            {
                this.IsFixedTimeStep = false;
                graphics.SynchronizeWithVerticalRetrace = false;
            }
            else
            {
                this.TargetElapsedTime = TimeSpan.FromSeconds(.05f);
            }
            Form form = Form.FromHandle(FlatRedBallServices.WindowHandle) as Form;
            form.Resize += HandleResize;
            IsMouseVisible = true;
            EditorData.Initialize();
            EditorData.ProcessCommandLineArguments(mCommandLineArguments);
            base.Initialize();
        }
protected override void Initialize ( ) { FlatRedBallServices . InitializeFlatRedBall ( this , this . graphics ) ; bool runAsFastAsPossible = false ; if ( runAsFastAsPossible ) { this . IsFixedTimeStep = false ; graphics . SynchronizeWithVerticalRetrace = false ; } else { this . TargetElapsedTime = TimeSpan . FromSeconds ( .05f ) ; } Form form = Form . FromHandle ( FlatRedBallServices . WindowHandle ) as Form ; form . Resize += HandleResize ; IsMouseVisible = true ; EditorData . Initialize ( ) ; EditorData . ProcessCommandLineArguments ( mCommandLineArguments ) ; 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.