Mercurial > projects > chipmunkd
comparison trunk/chipmunkd/constraints/cpPinJoint.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 | df4ebc8add66 |
children |
comparison
equal
deleted
inserted
replaced
27:b45f0b140d85 | 28:4541ca17975b |
---|---|
81 getImpulse(cpPinJoint *joint) | 81 getImpulse(cpPinJoint *joint) |
82 { | 82 { |
83 return cpfabs(joint.jnAcc); | 83 return cpfabs(joint.jnAcc); |
84 } | 84 } |
85 | 85 |
86 static /+const+/ cpConstraintClass klass = { | 86 __gshared /+const+/ cpConstraintClass klass = { |
87 cast(cpConstraintPreStepFunction)&preStep, | 87 cast(cpConstraintPreStepFunction)&preStep, |
88 cast(cpConstraintApplyImpulseFunction)&applyImpulse, | 88 cast(cpConstraintApplyImpulseFunction)&applyImpulse, |
89 cast(cpConstraintGetImpulseFunction)&getImpulse, | 89 cast(cpConstraintGetImpulseFunction)&getImpulse, |
90 }; | 90 }; |
91 mixin(CP_DefineClassGetter!("cpPinJoint")); | 91 mixin(CP_DefineClassGetter!("cpPinJoint")); |