Ejemplo n.º 1
0
        //---------------------------------------------------------------------------

        public void Render(SpriteBatch batch, float deltaTime)
        {
            if (m_Targets == null)
            {
                m_Targets = new List <RenderTarget2D>();
            }
            else
            {
                m_Targets.Clear();
            }

            foreach (Guid guid in m_Cameras)
            {
                CameraComponent camera = ComponentManager.Get().Find <CameraComponent>(guid);
                if (camera != null && camera.IsInitialized && EntityManager.Get().Find <Camera>(camera.Entity).IsEnabled)
                {
                    m_Targets.Add(camera.Render(batch, deltaTime));
                }
            }
        }