comparison trunk/chipmunkd/constraints/cpPivotJoint.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
75 getImpulse(cpConstraint *joint) 75 getImpulse(cpConstraint *joint)
76 { 76 {
77 return cpvlength((cast(cpPivotJoint *)joint).jAcc); 77 return cpvlength((cast(cpPivotJoint *)joint).jAcc);
78 } 78 }
79 79
80 static /+const+/ cpConstraintClass klass = { 80 __gshared /+const+/ cpConstraintClass klass = {
81 cast(cpConstraintPreStepFunction)&preStep, 81 cast(cpConstraintPreStepFunction)&preStep,
82 cast(cpConstraintApplyImpulseFunction)&applyImpulse, 82 cast(cpConstraintApplyImpulseFunction)&applyImpulse,
83 cast(cpConstraintGetImpulseFunction)&getImpulse, 83 cast(cpConstraintGetImpulseFunction)&getImpulse,
84 }; 84 };
85 mixin(CP_DefineClassGetter!("cpPivotJoint")); 85 mixin(CP_DefineClassGetter!("cpPivotJoint"));