# HG changeset patch # User Extrawurst # Date 1291329978 -3600 # Node ID b68f10432182b427f4e2b49c50a3fd8b0aa9892d # Parent 707dd4e10c282470d7c7fd6054230b1b44fcfffa some properties and some comments diff -r 707dd4e10c28 -r b68f10432182 trunk/chipmunkd/constraints/cpDampedRotarySpring.d --- a/trunk/chipmunkd/constraints/cpDampedRotarySpring.d Thu Dec 02 22:26:04 2010 +0100 +++ b/trunk/chipmunkd/constraints/cpDampedRotarySpring.d Thu Dec 02 23:46:18 2010 +0100 @@ -26,7 +26,7 @@ //cpDampedRotarySpring *cpDampedRotarySpringAlloc(void); //cpDampedRotarySpring *cpDampedRotarySpringInit(cpDampedRotarySpring *joint, cpBody *a, cpBody *b, cpFloat restAngle, cpFloat stiffness, cpFloat damping); //cpConstraint *cpDampedRotarySpringNew(cpBody *a, cpBody *b, cpFloat restAngle, cpFloat stiffness, cpFloat damping); -// +//TODO //CP_DefineConstraintProperty(cpDampedRotarySpring, cpFloat, restAngle, RestAngle); //CP_DefineConstraintProperty(cpDampedRotarySpring, cpFloat, stiffness, Stiffness); //CP_DefineConstraintProperty(cpDampedRotarySpring, cpFloat, damping, Damping); diff -r 707dd4e10c28 -r b68f10432182 trunk/chipmunkd/constraints/cpGearJoint.d --- a/trunk/chipmunkd/constraints/cpGearJoint.d Thu Dec 02 22:26:04 2010 +0100 +++ b/trunk/chipmunkd/constraints/cpGearJoint.d Thu Dec 02 23:46:18 2010 +0100 @@ -22,7 +22,7 @@ //cpGearJoint *cpGearJointAlloc(void); //cpGearJoint *cpGearJointInit(cpGearJoint *joint, cpBody *a, cpBody *b, cpFloat phase, cpFloat ratio); //cpConstraint *cpGearJointNew(cpBody *a, cpBody *b, cpFloat phase, cpFloat ratio); -// +//TODO //CP_DefineConstraintProperty(cpGearJoint, cpFloat, phase, Phase); //CP_DefineConstraintGetter(cpGearJoint, cpFloat, ratio, Ratio); //void cpGearJointSetRatio(cpConstraint *constraint, cpFloat value); diff -r 707dd4e10c28 -r b68f10432182 trunk/chipmunkd/constraints/cpGrooveJoint.d --- a/trunk/chipmunkd/constraints/cpGrooveJoint.d Thu Dec 02 22:26:04 2010 +0100 +++ b/trunk/chipmunkd/constraints/cpGrooveJoint.d Thu Dec 02 23:46:18 2010 +0100 @@ -27,7 +27,7 @@ //cpGrooveJoint *cpGrooveJointInit(cpGrooveJoint *joint, cpBody *a, cpBody *b, cpVect groove_a, cpVect groove_b, cpVect anchr2); //cpConstraint *cpGrooveJointNew(cpBody *a, cpBody *b, cpVect groove_a, cpVect groove_b, cpVect anchr2); // -// +//TODO //CP_DefineConstraintGetter(cpGrooveJoint, cpVect, grv_a, GrooveA); //void cpGrooveJointSetGrooveA(cpConstraint *constraint, cpVect value); //CP_DefineConstraintGetter(cpGrooveJoint, cpVect, grv_b, GrooveB); diff -r 707dd4e10c28 -r b68f10432182 trunk/chipmunkd/constraints/cpPinJoint.d --- a/trunk/chipmunkd/constraints/cpPinJoint.d Thu Dec 02 22:26:04 2010 +0100 +++ b/trunk/chipmunkd/constraints/cpPinJoint.d Thu Dec 02 23:46:18 2010 +0100 @@ -27,10 +27,10 @@ //cpPinJoint *cpPinJointAlloc(void); //cpPinJoint *cpPinJointInit(cpPinJoint *joint, cpBody *a, cpBody *b, cpVect anchr1, cpVect anchr2); //cpConstraint *cpPinJointNew(cpBody *a, cpBody *b, cpVect anchr1, cpVect anchr2); -// -//CP_DefineConstraintProperty(cpPinJoint, cpVect, anchr1, Anchr1); -//CP_DefineConstraintProperty(cpPinJoint, cpVect, anchr2, Anchr2); -//CP_DefineConstraintProperty(cpPinJoint, cpFloat, dist, Dist); + +mixin(CP_DefineConstraintProperty!("cpPinJoint", "cpVect", "anchr1", "Anchr1")); +mixin(CP_DefineConstraintProperty!("cpPinJoint", "cpVect", "anchr2", "Anchr2")); +mixin(CP_DefineConstraintProperty!("cpPinJoint", "cpFloat", "dist", "Dist")); // cpPinJoint.c ------------------------- diff -r 707dd4e10c28 -r b68f10432182 trunk/chipmunkd/constraints/cpPivotJoint.d --- a/trunk/chipmunkd/constraints/cpPivotJoint.d Thu Dec 02 22:26:04 2010 +0100 +++ b/trunk/chipmunkd/constraints/cpPivotJoint.d Thu Dec 02 23:46:18 2010 +0100 @@ -24,7 +24,7 @@ //cpPivotJoint *cpPivotJointInit(cpPivotJoint *joint, cpBody *a, cpBody *b, cpVect anchr1, cpVect anchr2); //cpConstraint *cpPivotJointNew(cpBody *a, cpBody *b, cpVect pivot); //cpConstraint *cpPivotJointNew2(cpBody *a, cpBody *b, cpVect anchr1, cpVect anchr2); -// +//TODO //CP_DefineConstraintProperty(cpPivotJoint, cpVect, anchr1, Anchr1); //CP_DefineConstraintProperty(cpPivotJoint, cpVect, anchr2, Anchr2); diff -r 707dd4e10c28 -r b68f10432182 trunk/chipmunkd/constraints/cpRatchetJoint.d --- a/trunk/chipmunkd/constraints/cpRatchetJoint.d Thu Dec 02 22:26:04 2010 +0100 +++ b/trunk/chipmunkd/constraints/cpRatchetJoint.d Thu Dec 02 23:46:18 2010 +0100 @@ -21,7 +21,7 @@ //cpRatchetJoint *cpRatchetJointAlloc(void); //cpRatchetJoint *cpRatchetJointInit(cpRatchetJoint *joint, cpBody *a, cpBody *b, cpFloat phase, cpFloat ratchet); //cpConstraint *cpRatchetJointNew(cpBody *a, cpBody *b, cpFloat phase, cpFloat ratchet); -// +//TODO //CP_DefineConstraintProperty(cpRatchetJoint, cpFloat, angle, Angle); //CP_DefineConstraintProperty(cpRatchetJoint, cpFloat, phase, Phase); //CP_DefineConstraintProperty(cpRatchetJoint, cpFloat, ratchet, Ratchet); diff -r 707dd4e10c28 -r b68f10432182 trunk/chipmunkd/constraints/cpRotaryLimitJoint.d --- a/trunk/chipmunkd/constraints/cpRotaryLimitJoint.d Thu Dec 02 22:26:04 2010 +0100 +++ b/trunk/chipmunkd/constraints/cpRotaryLimitJoint.d Thu Dec 02 23:46:18 2010 +0100 @@ -21,7 +21,7 @@ //cpRotaryLimitJoint *cpRotaryLimitJointAlloc(void); //cpRotaryLimitJoint *cpRotaryLimitJointInit(cpRotaryLimitJoint *joint, cpBody *a, cpBody *b, cpFloat min, cpFloat max); //cpConstraint *cpRotaryLimitJointNew(cpBody *a, cpBody *b, cpFloat min, cpFloat max); -// +//TODO //CP_DefineConstraintProperty(cpRotaryLimitJoint, cpFloat, min, Min); //CP_DefineConstraintProperty(cpRotaryLimitJoint, cpFloat, max, Max); diff -r 707dd4e10c28 -r b68f10432182 trunk/chipmunkd/constraints/cpSimpleMotor.d --- a/trunk/chipmunkd/constraints/cpSimpleMotor.d Thu Dec 02 22:26:04 2010 +0100 +++ b/trunk/chipmunkd/constraints/cpSimpleMotor.d Thu Dec 02 23:46:18 2010 +0100 @@ -21,7 +21,7 @@ //cpSimpleMotor *cpSimpleMotorInit(cpSimpleMotor *joint, cpBody *a, cpBody *b, cpFloat rate); //cpConstraint *cpSimpleMotorNew(cpBody *a, cpBody *b, cpFloat rate); // -//CP_DefineConstraintProperty(cpSimpleMotor, cpFloat, rate, Rate); +mixin(CP_DefineConstraintProperty!("cpSimpleMotor", "cpFloat", "rate", "Rate")); // cpRotaryLimitJoint.c --------------------------------- diff -r 707dd4e10c28 -r b68f10432182 trunk/chipmunkd/constraints/cpSlideJoint.d --- a/trunk/chipmunkd/constraints/cpSlideJoint.d Thu Dec 02 22:26:04 2010 +0100 +++ b/trunk/chipmunkd/constraints/cpSlideJoint.d Thu Dec 02 23:46:18 2010 +0100 @@ -24,7 +24,7 @@ //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);