[Dda-cvs] ntdda/src joint.c,1.3,1.4
Status: Beta
Brought to you by:
doolin
From: David M. D. <do...@us...> - 2006-08-01 05:26:14
|
Update of /cvsroot/dda/ntdda/src In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv21197/src Modified Files: joint.c Log Message: Added rooz patched for dialog handling. Index: joint.c =================================================================== RCS file: /cvsroot/dda/ntdda/src/joint.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** joint.c 6 Jun 2002 13:41:55 -0000 1.3 --- joint.c 1 Aug 2006 05:26:10 -0000 1.4 *************** *** 12,16 **** #endif ! /** @todo Add code for supporting Joints as --- 12,21 ---- #endif ! ! // Some indentation. ! #ifndef I2 ! #define I2 " " ! #endif ! /** @todo Add code for supporting Joints as *************** *** 99,103 **** void ! jointmat_set_tension (Jointmat * jm, double tension) { jm->tension = tension; --- 104,108 ---- void ! jointmat_set_tension (Jointmat * jm, double tension) { jm->tension = tension; *************** *** 106,110 **** int ! jointmat_get_type (Jointmat * jm) { return jm->type; --- 111,115 ---- int ! jointmat_get_type (Jointmat * jm) { return jm->type; *************** *** 112,119 **** void ! jointmat_set_type (Jointmat * jm, int type) { jm->type = type; } #ifdef __cplusplus --- 117,135 ---- void ! jointmat_set_type (Jointmat * jm, int type) { jm->type = type; } + + + void + joint_print_xml (Joint * j, PrintFunc printer, void * stream) { + + + printer(stream,I2"<Joint type=\"%d\">",j->type); + printer(stream," %14.10f %14.10f %14.10f %14.10f ", + j->epx1, j->epy1, j->epx2, j->epy2); + printer(stream,"</Joint>\n"); + } #ifdef __cplusplus |