jj_debug_lines function

  1. @Native<Int32 Function(Int64, Uint32, Pointer<Float>, Int32)>(ffi.Int64, ffi.Uint32, ffi.Pointer<ffi.Float>, ffi.Int32)>()
int jj_debug_lines(
  1. int world,
  2. int flags,
  3. Pointer<Float> out,
  4. int capacity,
)

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,
);