Overwrite existing entry
| 4271 | |
| 4272 | // Overwrite existing entry |
| 4273 | static ImFontAtlasRectId ImFontAtlasPackReuseRectEntry(ImFontAtlas* atlas, ImFontAtlasRectEntry* index_entry) |
| 4274 | { |
| 4275 | IM_ASSERT(index_entry->IsUsed); |
| 4276 | index_entry->TargetIndex = atlas->Builder->Rects.Size - 1; |
| 4277 | int index_idx = atlas->Builder->RectsIndex.index_from_ptr(index_entry); |
| 4278 | return ImFontAtlasRectId_Make(index_idx, index_entry->Generation); |
| 4279 | } |
| 4280 | |
| 4281 | // This is expected to be called in batches and followed by a repack |
| 4282 | void ImFontAtlasPackDiscardRect(ImFontAtlas* atlas, ImFontAtlasRectId id) |
no test coverage detected