Mercurial > hg > Members > tkaito > task_dandy
view ppe/TitleMove.cc @ 18:2c188b2becec
task_dandy test ver
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 09 Aug 2010 01:22:53 +0900 |
parents | e95c5c280f47 |
children | 632ce41a842a |
line wrap: on
line source
#include <stdio.h> #include "SchedTask.h" #include "TitleMove.h" #include "Func.h" /* これは必須 */ SchedDefineTask1(TitleMove, titlemove); static int titlemove(SchedTask *s,void *rbuf, void *wbuf) { ObjPropertyPtr i_obj; ObjPropertyPtr o_obj; i_obj = (ObjPropertyPtr)s->get_input(rbuf, 0); o_obj = (ObjPropertyPtr)s->get_output(wbuf, 0); i_obj[0].x += i_obj[0].vx; i_obj[0].y += i_obj[0].vy; // printf("indata_x = %f\n", i_obj[0].x); // printf("indata_y = %f\n", i_obj[0].y); s->swap(); return 0; }