;; use nvgArc (bind-func xtm_add_arc (lambda (path cx:i64 cy:i64 r:i64 deg1:i64 deg2:i64 dir:i32) (nvgArc path (i64tof cx) (i64tof cy) (i64tof r) (convert (* PI (/ (i64tod deg1) 180.))) (convert (* PI (/ (i64tod deg2) 180.))) dir)))