Mercurial > projects > chipmunkd
comparison trunk/chipmunkd/constraints/cpSlideJoint.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 |
---|---|
100 getImpulse(cpConstraint *joint) | 100 getImpulse(cpConstraint *joint) |
101 { | 101 { |
102 return cpfabs((cast(cpSlideJoint *)joint).jnAcc); | 102 return cpfabs((cast(cpSlideJoint *)joint).jnAcc); |
103 } | 103 } |
104 | 104 |
105 static /+const+/ cpConstraintClass klass = { | 105 __gshared /+const+/ cpConstraintClass klass = { |
106 cast(cpConstraintPreStepFunction)&preStep, | 106 cast(cpConstraintPreStepFunction)&preStep, |
107 cast(cpConstraintApplyImpulseFunction)&applyImpulse, | 107 cast(cpConstraintApplyImpulseFunction)&applyImpulse, |
108 cast(cpConstraintGetImpulseFunction)&getImpulse, | 108 cast(cpConstraintGetImpulseFunction)&getImpulse, |
109 }; | 109 }; |
110 mixin(CP_DefineClassGetter!("cpSlideJoint")); | 110 mixin(CP_DefineClassGetter!("cpSlideJoint")); |