MCPcopy Create free account
hub / github.com/cinder/Cinder / ImFontAtlasUpdateDrawListsSharedData

Function ImFontAtlasUpdateDrawListsSharedData

src/imgui/imgui_draw.cpp:3921–3929  ·  view source on GitHub ↗

Update texture coordinates in all draw list shared context FIXME-NEWATLAS FIXME-OPT: Doesn't seem necessary to update for all, only one bound to current context?

Source from the content-addressed store, hash-verified

3919// Update texture coordinates in all draw list shared context
3920// FIXME-NEWATLAS FIXME-OPT: Doesn't seem necessary to update for all, only one bound to current context?
3921void ImFontAtlasUpdateDrawListsSharedData(ImFontAtlas* atlas)
3922{
3923 for (ImDrawListSharedData* shared_data : atlas->DrawListSharedDatas)
3924 if (shared_data->FontAtlas == atlas)
3925 {
3926 shared_data->TexUvWhitePixel = atlas->TexUvWhitePixel;
3927 shared_data->TexUvLines = atlas->TexUvLines;
3928 }
3929}
3930
3931// Set current texture. This is mostly called from AddTexture() + to handle a failed resize.
3932static void ImFontAtlasBuildSetTexture(ImFontAtlas* atlas, ImTextureData* tex)

Callers 3

SetCurrentFontMethod · 0.85
ImFontAtlasTextureRepackFunction · 0.85
ImFontAtlasBuildInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected