MCPcopy Create free account
hub / github.com/VictorGordan/opengl-tutorials / PushFont

Method PushFont

ImGUI GLFW Tutorial/imgui/imgui.cpp:6531–6539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6529}
6530
6531void ImGui::PushFont(ImFont* font)
6532{
6533 ImGuiContext& g = *GImGui;
6534 if (!font)
6535 font = GetDefaultFont();
6536 SetCurrentFont(font);
6537 g.FontStack.push_back(font);
6538 g.CurrentWindow->DrawList->PushTextureID(font->ContainerAtlas->TexID);
6539}
6540
6541void ImGui::PopFont()
6542{

Callers

nothing calls this directly

Calls 3

GetDefaultFontFunction · 0.70
push_backMethod · 0.45
PushTextureIDMethod · 0.45

Tested by

no test coverage detected