MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / Render

Method Render

Sources/OvEditor/src/OvEditor/Panels/AView.cpp:53–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void OvEditor::Panels::AView::Render()
54{
55 auto [winWidth, winHeight] = GetSafeSize();
56 m_image->size = OvMaths::FVector2(static_cast<float>(winWidth), static_cast<float>(winHeight));
57
58 auto camera = GetCamera();
59 auto scene = GetScene();
60
61 if (winWidth > 0 && winHeight > 0 && camera && scene)
62 {
63 FrameMarkStart(name.c_str());
64
65 m_framebuffer.Resize(winWidth, winHeight);
66
67 InitFrame();
68
69 OvRendering::Data::FrameDescriptor frameDescriptor;
70 frameDescriptor.renderWidth = winWidth;
71 frameDescriptor.renderHeight = winHeight;
72 frameDescriptor.camera = camera;
73 frameDescriptor.outputBuffer = m_framebuffer;
74
75 m_renderer->BeginFrame(frameDescriptor);
76 DrawFrame();
77 m_renderer->EndFrame();
78 FrameMarkEnd(name.c_str());
79 EDITOR_CONTEXT(driver)->OnFrameCompleted();
80 }
81}
82
83void OvEditor::Panels::AView::DrawFrame()
84{

Callers 3

RunMethod · 0.45
RenderViewsMethod · 0.45
RenderEditorUIMethod · 0.45

Calls 6

FVector2Class · 0.85
c_strMethod · 0.80
ResizeMethod · 0.45
BeginFrameMethod · 0.45
EndFrameMethod · 0.45
OnFrameCompletedMethod · 0.45

Tested by

no test coverage detected