MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / PathLineTo

Method PathLineTo

3rdparty/imgui/include/imgui.h:3366–3366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3364 // so e.g. 'PathArcTo(center, radius, PI * -0.5f, PI)' is ok, whereas 'PathArcTo(center, radius, PI, PI * -0.5f)' won't have correct anti-aliasing when followed by PathFillConvex().
3365 inline void PathClear() { _Path.Size = 0; }
3366 inline void PathLineTo(const ImVec2& pos) { _Path.push_back(pos); }
3367 inline void PathLineToMergeDuplicate(const ImVec2& pos) { if (_Path.Size == 0 || memcmp(&_Path.Data[_Path.Size - 1], &pos, 8) != 0) _Path.push_back(pos); }
3368 inline void PathFillConvex(ImU32 col) { AddConvexPolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; }
3369 inline void PathFillConcave(ImU32 col) { AddConcavePolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; }

Callers 7

RenderCheckMarkMethod · 0.80
TabItemBackgroundMethod · 0.80
PathConcaveShapeFunction · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected