changeset 7:b68f10432182

some properties and some comments
author Extrawurst
date Thu, 02 Dec 2010 23:46:18 +0100
parents 707dd4e10c28
children 2f359b2e4641
files trunk/chipmunkd/constraints/cpDampedRotarySpring.d trunk/chipmunkd/constraints/cpGearJoint.d trunk/chipmunkd/constraints/cpGrooveJoint.d trunk/chipmunkd/constraints/cpPinJoint.d trunk/chipmunkd/constraints/cpPivotJoint.d trunk/chipmunkd/constraints/cpRatchetJoint.d trunk/chipmunkd/constraints/cpRotaryLimitJoint.d trunk/chipmunkd/constraints/cpSimpleMotor.d trunk/chipmunkd/constraints/cpSlideJoint.d
diffstat 9 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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);
--- 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);
--- 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 -------------------------
 
--- 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);
 
--- 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);
--- 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);
 
--- 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 ---------------------------------
 
--- 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);