view spe/TitleMove.cc @ 7:c015109a6041

schedule add. 10% done.
author tkaito
date Tue, 29 Jun 2010 04:25:32 +0900
parents
children
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);
  
  o_obj[0] = i_obj[0];

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

  return 0;
}