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

Method _SetTexture

imgui_tiny_app/imgui/imgui_draw.cpp:713–720  ·  view source on GitHub ↗

This is used by ImGui::PushFont()/PopFont(). It works because we never use _TextureIdStack[] elsewhere than in PushTexture()/PopTexture().

Source from the content-addressed store, hash-verified

711
712// This is used by ImGui::PushFont()/PopFont(). It works because we never use _TextureIdStack[] elsewhere than in PushTexture()/PopTexture().
713void ImDrawList::_SetTexture(ImTextureRef tex_ref)
714{
715 if (_CmdHeader.TexRef == tex_ref)
716 return;
717 _CmdHeader.TexRef = tex_ref;
718 _TextureStack.back() = tex_ref;
719 _OnChangedTexture();
720}
721
722// Reserve space for a number of vertices and indices.
723// You must finish filling your reserved data before calling PrimReserve() again, as it may reallocate or

Callers 2

SetCurrentFontMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected