comparison trunk/chipmunkd/constraints/cpRotaryLimitJoint.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
88 getImpulse(cpRotaryLimitJoint *joint) 88 getImpulse(cpRotaryLimitJoint *joint)
89 { 89 {
90 return cpfabs(joint.jAcc); 90 return cpfabs(joint.jAcc);
91 } 91 }
92 92
93 static /+const+/ cpConstraintClass klass = { 93 __gshared /+const+/ cpConstraintClass klass = {
94 cast(cpConstraintPreStepFunction)&preStep, 94 cast(cpConstraintPreStepFunction)&preStep,
95 cast(cpConstraintApplyImpulseFunction)&applyImpulse, 95 cast(cpConstraintApplyImpulseFunction)&applyImpulse,
96 cast(cpConstraintGetImpulseFunction)&getImpulse, 96 cast(cpConstraintGetImpulseFunction)&getImpulse,
97 }; 97 };
98 mixin(CP_DefineClassGetter!("cpRotaryLimitJoint")); 98 mixin(CP_DefineClassGetter!("cpRotaryLimitJoint"));