Mercurial > projects > chipmunkd
comparison trunk/chipmunkd/constraints/cpGrooveJoint.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 | c03a41d47b60 |
children |
comparison
equal
deleted
inserted
replaced
27:b45f0b140d85 | 28:4541ca17975b |
---|---|
110 getImpulse(cpGrooveJoint *joint) | 110 getImpulse(cpGrooveJoint *joint) |
111 { | 111 { |
112 return cpvlength(joint.jAcc); | 112 return cpvlength(joint.jAcc); |
113 } | 113 } |
114 | 114 |
115 static /+const+/ cpConstraintClass klass = { | 115 __gshared /+const+/ cpConstraintClass klass = { |
116 cast(cpConstraintPreStepFunction)&preStep, | 116 cast(cpConstraintPreStepFunction)&preStep, |
117 cast(cpConstraintApplyImpulseFunction)&applyImpulse, | 117 cast(cpConstraintApplyImpulseFunction)&applyImpulse, |
118 cast(cpConstraintGetImpulseFunction)&getImpulse, | 118 cast(cpConstraintGetImpulseFunction)&getImpulse, |
119 }; | 119 }; |
120 mixin(CP_DefineClassGetter!("cpGrooveJoint")); | 120 mixin(CP_DefineClassGetter!("cpGrooveJoint")); |