Mercurial > projects > chipmunkd
diff trunk/chipmunkd/constraints/cpSlideJoint.d @ 13:c03a41d47b60
- finished all constraints properties
- implemented cpAssertWarn the mixin way
author | Extrawurst |
---|---|
date | Fri, 03 Dec 2010 21:38:01 +0100 |
parents | b68f10432182 |
children | 4541ca17975b |
line wrap: on
line diff
--- a/trunk/chipmunkd/constraints/cpSlideJoint.d Fri Dec 03 01:01:39 2010 +0100 +++ b/trunk/chipmunkd/constraints/cpSlideJoint.d Fri Dec 03 21:38:01 2010 +0100 @@ -24,11 +24,11 @@ //cpSlideJoint *cpSlideJointAlloc(void); //cpSlideJoint *cpSlideJointInit(cpSlideJoint *joint, cpBody *a, cpBody *b, cpVect anchr1, cpVect anchr2, cpFloat min, cpFloat max); //cpConstraint *cpSlideJointNew(cpBody *a, cpBody *b, cpVect anchr1, cpVect anchr2, cpFloat min, cpFloat max); -//TODO -//CP_DefineConstraintProperty(cpSlideJoint, cpVect, anchr1, Anchr1); -//CP_DefineConstraintProperty(cpSlideJoint, cpVect, anchr2, Anchr2); -//CP_DefineConstraintProperty(cpSlideJoint, cpFloat, min, Min); -//CP_DefineConstraintProperty(cpSlideJoint, cpFloat, max, Max); + +mixin(CP_DefineConstraintProperty!("cpSlideJoint", "cpVect", "anchr1", "Anchr1")); +mixin(CP_DefineConstraintProperty!("cpSlideJoint", "cpVect", "anchr2", "Anchr2")); +mixin(CP_DefineConstraintProperty!("cpSlideJoint", "cpFloat", "min", "Min")); +mixin(CP_DefineConstraintProperty!("cpSlideJoint", "cpFloat", "max", "Max")); // cpSlideJoint.c ---------------------------------