public Form1() : base() { sForm = this; EditorData.Initialize(); GuiData.Initialize(); }
public GameForm() : base() { sGameForm = this; // Don't give it a ShapeCollection to edit - make it null. EditorData.Initialize(null); GuiData.Initialize(); sGameForm.Text = "PolygonEditor - untitled file"; this.DragEnter += new System.Windows.Forms.DragEventHandler(this.GameForm_DragDrop); }
/// <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> protected override void Initialize() { FlatRedBallServices.InitializeFlatRedBall(this, graphics); //SpriteManager.Camera.LightingEnabled = true; //SpriteManager.Camera.Lights.SetDefaultLighting(FlatRedBall.Graphics.Lighting.LightCollection.DefaultLightingSetup.Evening); FlatRedBall.Graphics.Lighting.LightManager.AddAmbientLight(Color.White); IsMouseVisible = true; GuiManager.IsUIEnabled = true; SpriteManager.Camera.CameraModelCullMode = FlatRedBall.Graphics.CameraModelCullMode.None; EditorData.Initialize(null); GuiData.Initialize(); ProcessCommandLineArguments(); // TODO: Set the name of the file that the user is editing. base.Initialize(); }