This is used by ImGui::PushFont()/PopFont(). It works because we never use _TextureIdStack[] elsewhere than in PushTexture()/PopTexture().
| 711 | |
| 712 | // This is used by ImGui::PushFont()/PopFont(). It works because we never use _TextureIdStack[] elsewhere than in PushTexture()/PopTexture(). |
| 713 | void 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 |
no outgoing calls
no test coverage detected