MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / CloneOutput

Method CloneOutput

imgui_tiny_app/imgui/imgui_draw.cpp:500–508  ·  view source on GitHub ↗

Note: For multi-threaded rendering, consider using `imgui_threaded_rendering` from https://github.com/ocornut/imgui_club

Source from the content-addressed store, hash-verified

498
499// Note: For multi-threaded rendering, consider using `imgui_threaded_rendering` from https://github.com/ocornut/imgui_club
500ImDrawList* ImDrawList::CloneOutput() const
501{
502 ImDrawList* dst = IM_NEW(ImDrawList(NULL));
503 dst->CmdBuffer = CmdBuffer;
504 dst->IdxBuffer = IdxBuffer;
505 dst->VtxBuffer = VtxBuffer;
506 dst->Flags = Flags;
507 return dst;
508}
509
510void ImDrawList::AddDrawCmd()
511{

Callers

nothing calls this directly

Calls 1

ImDrawListClass · 0.85

Tested by

no test coverage detected