Lines Matching refs:pack_rects
2075 ImVector<stbrp_rect> pack_rects; in ImFontAtlasBuildPackCustomRects() local
2076 pack_rects.resize(user_rects.Size); in ImFontAtlasBuildPackCustomRects()
2077 memset(pack_rects.Data, 0, (size_t)pack_rects.size_in_bytes()); in ImFontAtlasBuildPackCustomRects()
2080 pack_rects[i].w = user_rects[i].Width; in ImFontAtlasBuildPackCustomRects()
2081 pack_rects[i].h = user_rects[i].Height; in ImFontAtlasBuildPackCustomRects()
2083 stbrp_pack_rects(pack_context, &pack_rects[0], pack_rects.Size); in ImFontAtlasBuildPackCustomRects()
2084 for (int i = 0; i < pack_rects.Size; i++) in ImFontAtlasBuildPackCustomRects()
2085 if (pack_rects[i].was_packed) in ImFontAtlasBuildPackCustomRects()
2087 user_rects[i].X = pack_rects[i].x; in ImFontAtlasBuildPackCustomRects()
2088 user_rects[i].Y = pack_rects[i].y; in ImFontAtlasBuildPackCustomRects()
2089 … IM_ASSERT(pack_rects[i].w == user_rects[i].Width && pack_rects[i].h == user_rects[i].Height); in ImFontAtlasBuildPackCustomRects()
2090 atlas->TexHeight = ImMax(atlas->TexHeight, pack_rects[i].y + pack_rects[i].h); in ImFontAtlasBuildPackCustomRects()