MCPcopy Create free account
hub / github.com/RenderKit/embree / AddCustomRectRegular

Method AddCustomRectRegular

tutorials/common/imgui/imgui_draw.cpp:2192–2201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2190}
2191
2192int ImFontAtlas::AddCustomRectRegular(int width, int height)
2193{
2194 IM_ASSERT(width > 0 && width <= 0xFFFF);
2195 IM_ASSERT(height > 0 && height <= 0xFFFF);
2196 ImFontAtlasCustomRect r;
2197 r.Width = (unsigned short)width;
2198 r.Height = (unsigned short)height;
2199 CustomRects.push_back(r);
2200 return CustomRects.Size - 1; // Return index
2201}
2202
2203int ImFontAtlas::AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset)
2204{

Callers 1

ImFontAtlasBuildInitFunction · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected