comparison trunk/chipmunkd/cpCollision.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
349 &circle2poly, 349 &circle2poly,
350 &seg2poly, 350 &seg2poly,
351 &poly2poly, 351 &poly2poly,
352 ]; 352 ];
353 353
354 static collisionFunc[cpShapeType.CP_NUM_SHAPES * cpShapeType.CP_NUM_SHAPES] colfuncs = builtinCollisionFuncs; 354 __gshared collisionFunc[cpShapeType.CP_NUM_SHAPES * cpShapeType.CP_NUM_SHAPES] colfuncs = builtinCollisionFuncs;
355 355
356 static void 356 static void
357 addColFunc(const cpShapeType a, const cpShapeType b, collisionFunc func) 357 addColFunc(const cpShapeType a, const cpShapeType b, collisionFunc func)
358 { 358 {
359 colfuncs[a + b*cpShapeType.CP_NUM_SHAPES] = func; 359 colfuncs[a + b*cpShapeType.CP_NUM_SHAPES] = func;