public static void Update() { mEditorLogic.Update(); if (mScene != null) { mScene.ManageAll(); } #region if there is a mEditorLogic.CurrentEmitter if (AppState.Self.CurrentEmitter != null) { if (GuiData.ActivityWindow.TimedEmitCurrent) { AppState.Self.CurrentEmitter.TimedEmit(null); } } #endregion if (GuiData.ActivityWindow.TimedEmitAll) { foreach (Emitter emitter in Emitters) { emitter.TimedEmit(); } } GuiData.Update(); UndoManager.EndOfFrameActivity(); // if(guiData.propWindow.textureButton.CurrentChain != null) // sprMan.AnimateWAnimateWindow(guiData.propWindow.textureButton); }
//GameForm form; #endregion public void Initialize() { #region initialize engine managers and data //this.form = form; //gameData = GameForm.gameData; camera = SpriteManager.Camera; guiData = EditorData.guiData; #endregion }
public static void Initialize() { #region initialize engine managers and data guiData = new GuiData(); camera = SpriteManager.Camera; cursor = GuiManager.Cursor; SpriteManager.Camera.FarClipPlane = 1800; mEditorLogic = new EditorLogic(); EditorProperties = new EditorProperties(); #endregion // SpriteManager.AddParticleSprite( // FlatRedBallServices.Load<Texture2D>("redball.bmp", "PermanentContentManager")); }
protected override void Initialize() { Renderer.UseRenderTargets = false; FlatRedBallServices.InitializeFlatRedBall(this, graphics); LightManager.AddAmbientLight(Color.White); IsMouseVisible = true; GuiManager.IsUIEnabled = true; FormMethods methods = new FormMethods(); SpriteManager.Camera.CameraModelCullMode = FlatRedBall.Graphics.CameraModelCullMode.None; methods.AllowFileDrop(EditorData.HandleDragDrop); EditorData.Initialize(); GuiData.Initialize(); ProcessCommandLineArguments(); base.Initialize(); }