comparison trunk/chipmunkd/constraints/cpSimpleMotor.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
64 getImpulse(cpSimpleMotor *joint) 64 getImpulse(cpSimpleMotor *joint)
65 { 65 {
66 return cpfabs(joint.jAcc); 66 return cpfabs(joint.jAcc);
67 } 67 }
68 68
69 static /+const+/ cpConstraintClass klass = { 69 __gshared /+const+/ cpConstraintClass klass = {
70 cast(cpConstraintPreStepFunction)&preStep, 70 cast(cpConstraintPreStepFunction)&preStep,
71 cast(cpConstraintApplyImpulseFunction)&applyImpulse, 71 cast(cpConstraintApplyImpulseFunction)&applyImpulse,
72 cast(cpConstraintGetImpulseFunction)&getImpulse, 72 cast(cpConstraintGetImpulseFunction)&getImpulse,
73 }; 73 };
74 mixin(CP_DefineClassGetter!("cpSimpleMotor")); 74 mixin(CP_DefineClassGetter!("cpSimpleMotor"));