Exemple #1
0
        public void Update(float deltaTime)
        {
            if (Paused)
            {
                return;
            }

            m_timeSinceLastRender += deltaTime;
            if (m_timeSinceLastRender < UpdateInterval)
            {
                return;
            }

            m_timeSinceLastRender -= UpdateInterval;
            m_renderWindow.SetView(View);
            DrawOneFrame(m_renderWindow);
            m_renderWindow.Display();
        }