Mercurial > projects > chipmunkd
comparison trunk/chipmunkd/constraints/cpDampedRotarySpring.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 |
---|---|
79 getImpulse(cpConstraint *constraint) | 79 getImpulse(cpConstraint *constraint) |
80 { | 80 { |
81 return 0.0f; | 81 return 0.0f; |
82 } | 82 } |
83 | 83 |
84 static /+const+/ cpConstraintClass klass = { | 84 __gshared /+const+/ cpConstraintClass klass = { |
85 cast(cpConstraintPreStepFunction)&preStep, | 85 cast(cpConstraintPreStepFunction)&preStep, |
86 cast(cpConstraintApplyImpulseFunction)&applyImpulse, | 86 cast(cpConstraintApplyImpulseFunction)&applyImpulse, |
87 cast(cpConstraintGetImpulseFunction)&getImpulse, | 87 cast(cpConstraintGetImpulseFunction)&getImpulse, |
88 }; | 88 }; |
89 mixin(CP_DefineClassGetter!("cpDampedRotarySpring")); | 89 mixin(CP_DefineClassGetter!("cpDampedRotarySpring")); |