Ejemplo n.º 1
0
        public void OnFrame()
        {
            Dispatcher.ProcessFrame();

            CamControl.Update(ActiveCamera, State != AppState.World);

            EditManager.Instance.UpdateChanges();

            // do not move before mCamControl.Update to have the latest view/projection
            if (State == AppState.World)
            {
                UpdateCursorPosition();
                UpdateBrushTime(TimeManager.Instance.GetTime());
                CheckUpdateGlobalBuffer();
            }

            GraphicsContext.Context.VertexShader.SetConstantBuffer(0, mGlobalBuffer.Native);
            GraphicsContext.Context.PixelShader.SetConstantBuffer(0, mGlobalBuffer.Native);

            MapManager.OnFrame(ActiveCamera);

            if (!HideWMO)
            {
                WmoManager.OnFrame(ActiveCamera);
            }

            if (!HideM2)
            {
                M2Manager.OnFrame(ActiveCamera);
            }

            WorldTextManager.OnFrame(ActiveCamera);
            BoundingBoxDrawManager.OnFrame();
        }
Ejemplo n.º 2
0
        public void OnFrame()
        {
            Dispatcher.ProcessFrame();

            CamControl.Update(ActiveCamera, State != AppState.World);

            Editing.EditManager.Instance.UpdateChanges();

            // do not move before mCamControl.Update to have the latest view/projection
            UpdateCursorPosition();
            UpdateBrushTime(Utils.TimeManager.Instance.GetTime());
            UpdateBuffers();

            GraphicsContext.Context.VertexShader.SetConstantBuffer(0, mGlobalBuffer.Native);
            GraphicsContext.Context.PixelShader.SetConstantBuffer(0, mGlobalParamsBuffer.Native);
            MapManager.OnFrame();
            WmoManager.OnFrame();
            M2Manager.OnFrame();
        }