コード例 #1
0
        internal void Begin()
        {
            Physics.Reset();

            _didSceneBegin = true;
            OnStart();
        }
コード例 #2
0
        public SceneHeadless()
        {
            Entities = new EntityList(this);

            Initialize();

            Physics.Reset();

            _didSceneBegin = true;
            OnStart();
        }
コード例 #3
0
        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();
        }