コード例 #1
0
        public static RenderBreakViewModel FromRenderBreakSave(RenderBreakSave renderBreakSave)
        {
            RenderBreakViewModel toReturn = new RenderBreakViewModel();

            toReturn.LayerName = renderBreakSave.LayerName;
            toReturn.Texture   = renderBreakSave.Texture;

            toReturn.ColorOperation     = renderBreakSave.ColorOperation;
            toReturn.BlendOperation     = renderBreakSave.BlendOperation;
            toReturn.TextureFilter      = renderBreakSave.TextureFilter;
            toReturn.TextureAddressMode = renderBreakSave.TextureAddressMode;

#if DEBUG
            toReturn.Details = renderBreakSave.Details;
#endif
            return(toReturn);
        }
コード例 #2
0
        public void RecordCurrentFrameRenderBreaks()
        {
            var list = FlatRedBall.Graphics.Renderer.LastFrameRenderBreakList;

            FrameRecordViewModel viewModel = new FrameRecordViewModel();

            viewModel.Time = TimeManager.CurrentTime;

            foreach (var runtime in list)
            {
                RenderBreakSave save = RenderBreakSave.FromRenderBreak(runtime);

                viewModel.RenderBreaks.Add(save);
            }

            RecordedFrames.Add(viewModel);
        }