Beispiel #1
0
        public void RenderFrame(float deltaTime)
        {
            if (!Initialized)
            {
                return;
            }

            DoFrame(deltaTime);
            ActiveScene.UpdateScene(deltaTime);
            ActiveScene.RenderScene(m_d3dRenderer.D3DDevice, m_d3dRenderer.D3DDeviceContext);
            m_d3dRenderer.PresentActiveWindow();
            for (int i = 1; i < m_renderScenes.Count; i++)
            {
                CRenderScene scene = m_renderScenes[i];
                m_d3dRenderer.SetActiveWindow(scene.SceneRenderer);
                scene.UpdateScene(deltaTime);
                scene.RenderScene(m_d3dRenderer.D3DDevice, m_d3dRenderer.D3DDeviceContext);
                m_d3dRenderer.PresentActiveWindow();
            }
            m_d3dRenderer.EndFrame();
        }