chipmunkd ~master
D bindings to chipmunk2d, a 2D physics engine.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
chipmunkd
D bindings (-betterC) to the 7.X versions of Chipmunk2D, a physics library.
Use
You will need to have the chipmunk library installed to use chipmunkd.
You could use something like the following in your dub.sdl
:
dependency "chipmunkd" version="<~1.0.0+7.0.1"
libs "chipmunk"
Note that the version spec 1.0.0+7.0.1
denotes that this is version 1.0.0
of
the chipmunkd bindings, which target the 7.0.1
version of the C library.
The documentation for chipmunk should mostly apply to the D bindings as well.
Demos
The demo
folder contains demo programs ported from the demos included in the C
library. These depend on glew
and glfw2
. This is an older version of glfw
,
so there are some quickly hacked-together bindings in the demo folder to get it
working.
You can build and run the demos using dub
.
Comparison to DChip
You might also be interested in dchip. While chipmunkd provides D bindings to the original C library, dchip fully implements the source in D. With dchip, you don't need to take a dependency on the original C library, but it may be harder to keep up to date with the upstream version.
License
Both chipmunkd and Chipmunk2D are licensed under the MIT License.
Credits
These bindings were created with the help of dstep.
- Registered by Ryan Roden-Corrent
- ~master released 4 years ago
- rcorre/chipmunkd
- github.com/rcorre/chipmunkd
- MIT
- Copyright © 2016, rcorre
- Authors:
- Dependencies:
- none
- Versions:
-
1.0.1+7.0.1 2020-Mar-21 1.0.0+7.0.1 2016-Mar-01 ~master 2020-Mar-21 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
126 downloads total
-
- Score:
- 1.6
- Short URL:
- chipmunkd.dub.pm