view ppe/TitleMove.cc @ 14:e95c5c280f47

task_dandy test version.
author koba <koba@cr.ie.u-ryukyu.ac.jp>
date Fri, 06 Aug 2010 22:47:05 +0900
parents 661ec1e92042
children 2c188b2becec
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;

  printf("indata_x = %f\n", i_obj[0].x);
  printf("indata_y = %f\n", i_obj[0].y);

  s->swap();

  return 0;
}