Open zwcloud opened 4 years ago
This is another preparation for text-rendering unit-tests.
Currently, the only way to create a PathGeometry is adding segments one by one, adding figures one by one. https://github.com/zwcloud/ImGui/blob/accca31a7605343bd76dc76d0da74ba65736548f/src/ImGui/Control/Toggle.cs#L180-L188
PathGeometry
ImGui shoud provide stateful APIs as a convenient alternative like the HTML's canvas 2D path APIs.
reference:
TODO StreamGeometryContext should be implemented first and the PathGeometryBuilder will be built on top of it.
StreamGeometryContext
PathGeometryBuilder
This is another preparation for text-rendering unit-tests.
Currently, the only way to create a
PathGeometry
is adding segments one by one, adding figures one by one. https://github.com/zwcloud/ImGui/blob/accca31a7605343bd76dc76d0da74ba65736548f/src/ImGui/Control/Toggle.cs#L180-L188ImGui shoud provide stateful APIs as a convenient alternative like the HTML's canvas 2D path APIs.