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

Method GetDrawData

imgui_tiny_app/imgui/imgui.cpp:5295–5300  ·  view source on GitHub ↗

Pass this to your backend rendering function! Valid after Render() and until the next call to NewFrame()

Source from the content-addressed store, hash-verified

5293
5294// Pass this to your backend rendering function! Valid after Render() and until the next call to NewFrame()
5295ImDrawData* ImGui::GetDrawData()
5296{
5297 ImGuiContext& g = *GImGui;
5298 ImGuiViewportP* viewport = g.Viewports[0];
5299 return viewport->DrawDataP.Valid ? &viewport->DrawDataP : NULL;
5300}
5301
5302double ImGui::GetTime()
5303{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected