chipmunk-rb / chipmunk-ffi

chipmunk ruby bindings using ffi
26 stars 6 forks source link

Body, Constraint, SpaceHash structs updated #17

Closed utgarda closed 13 years ago

utgarda commented 13 years ago

Updated the structs mentioned, double-checked every field, they are exactly as in 6.1+ source headers. While doing that, updated some functions so the old specs don't fail, i.e. updated func and callback signatures, renamed them to fit their according names in 6.x source. Though, I can tell exactly only for structs, functions list is most likely not full, so there's need to re-populate specs and get sure API is fully wrapped.

Consider renaming space_hash.rb -> spatial_index.rb, most of its functions were removed, the rest now are in cpSpatialIndex.h

Problems encountered: can't deal with shape.rb, don't understand some parts, like how to properly access fields of an ffi struct inside another ffi struct.

Specs that fail: shape, space, others ok. space_hash_spec.rb gets passed, but it's mostly empty. Of course, they are outdated and incomplete.

Ok, I'm off till Monday, see ya.

shawn42 commented 13 years ago

Good start on chipmunk-6 support, thanks utgarda