jj_debug_lines function
Draws the world's bodies (and joints when flags & 1) as lines, writing up to capacity of them, JJ_DEBUG_LINE_FLOATS floats each. Returns how many there are in all (more than capacity: call again with more room), or -1 when the library has no debug renderer.
Implementation
@ffi.Native<
ffi.Int32 Function(ffi.Int64, ffi.Uint32, ffi.Pointer<ffi.Float>, ffi.Int32)
>()
external int jj_debug_lines(
int world,
int flags,
ffi.Pointer<ffi.Float> out,
int capacity,
);