stbcc_init_grid function
initialize the grid, value of map[] is 0 = traversable, non-0 is solid
Implementation
@ffi.Native<
ffi.Void Function(
ffi.Pointer<stbcc_grid>,
ffi.Pointer<ffi.UnsignedChar>,
ffi.Int,
ffi.Int,
)
>()
external void stbcc_init_grid(
ffi.Pointer<stbcc_grid> g,
ffi.Pointer<ffi.UnsignedChar> map,
int w,
int h,
);