Mercurial > projects > chipmunkd
comparison trunk/chipmunkd/cpArbiter.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 | 4ceef5833c8c |
children |
comparison
equal
deleted
inserted
replaced
27:b45f0b140d85 | 28:4541ca17975b |
---|---|
181 return set; | 181 return set; |
182 } | 182 } |
183 | 183 |
184 // cpArbiter.c -------------------------- | 184 // cpArbiter.c -------------------------- |
185 | 185 |
186 cpFloat cp_bias_coef = 0.1f; | 186 __gshared cpFloat cp_bias_coef = 0.1f; |
187 cpFloat cp_collision_slop = 0.1f; | 187 __gshared cpFloat cp_collision_slop = 0.1f; |
188 | 188 |
189 cpContact* | 189 cpContact* |
190 cpContactInit(cpContact *con, cpVect p, cpVect n, cpFloat dist, cpHashValue hash) | 190 cpContactInit(cpContact *con, cpVect p, cpVect n, cpFloat dist, cpHashValue hash) |
191 { | 191 { |
192 con.p = p; | 192 con.p = p; |