Mercurial > projects > chipmunkd
diff trunk/chipmunkd/cpBody.d @ 28:4541ca17975b
use __gshared as chipmunk heavily relies on globals and D would otherwise make them TLS
author | Extrawurst |
---|---|
date | Mon, 13 Dec 2010 21:40:56 +0100 |
parents | 4ceef5833c8c |
children |
line wrap: on
line diff
--- a/trunk/chipmunkd/cpBody.d Mon Dec 13 21:24:12 2010 +0100 +++ b/trunk/chipmunkd/cpBody.d Mon Dec 13 21:40:56 2010 +0100 @@ -220,7 +220,7 @@ //void cpApplyDampedSpring(cpBody *a, cpBody *b, cpVect anchr1, cpVect anchr2, cpFloat rlen, cpFloat k, cpFloat dmp, cpFloat dt); // initialized in cpInitChipmunk() -cpBody cpStaticBodySingleton; +__gshared cpBody cpStaticBodySingleton; cpBody* cpBodyAlloc() @@ -228,8 +228,8 @@ return cast(cpBody *)cpmalloc(cpBody.sizeof); } -cpBodyVelocityFunc cpBodyUpdateVelocityDefault = &cpBodyUpdateVelocity; -cpBodyPositionFunc cpBodyUpdatePositionDefault = &cpBodyUpdatePosition; +__gshared cpBodyVelocityFunc cpBodyUpdateVelocityDefault = &cpBodyUpdateVelocity; +__gshared cpBodyPositionFunc cpBodyUpdatePositionDefault = &cpBodyUpdatePosition; cpBody* cpBodyInit(cpBody *_body, cpFloat m, cpFloat i)