build
Returns a non-owned Path. Calling deinit on the Builder is still required to free memory
Parameters
- path:*Builder
- *Builder
Source
Implementation
pub fn build(path: *Builder) Path {
if (path.oom_error_occurred) {
// This does not allow for error return traces, but
// reduces spam caused by logs on every call to `addPoint`
dvui.logError(@src(), std.mem.Allocator.Error.OutOfMemory, "Path encountered error and is likely incomplete", .{});
}
return .{ .points = path.points.items };
}