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); }
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); }