internal void Begin() { Physics.Reset(); _didSceneBegin = true; OnStart(); }
public SceneHeadless() { Entities = new EntityList(this); Initialize(); Physics.Reset(); _didSceneBegin = true; OnStart(); }
internal void Begin() { if (_renderers.Length == 0) { AddRenderer(new DefaultRenderer()); Debug.Warn("Scene has begun with no renderer. A DefaultRenderer was added automatically so that something is visible."); } Physics.Reset(); // prep our render textures UpdateResolutionScaler(); GraphicsDeviceExt.SetRenderTarget(Core.GraphicsDevice, _sceneRenderTarget); if (EntityProcessors != null) { EntityProcessors.Begin(); } Core.Emitter.AddObserver(CoreEvents.GraphicsDeviceReset, OnGraphicsDeviceReset); _didSceneBegin = true; OnStart(); }