Mercurial > hg > Members > tkaito > task_dandy
comparison ppe/Move04.cc @ 1:7dc2d920fc7c
local update. xml,image, blender add. ppe/move, ppe/coll add.
author | tkaito |
---|---|
date | Tue, 15 Jun 2010 11:14:36 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:e66ea5014aa1 | 1:7dc2d920fc7c |
---|---|
1 #include <stdio.h> | |
2 #include "SchedTask.h" | |
3 #include "Move04.h" | |
4 #include "Func.h" | |
5 | |
6 /* これは必須 */ | |
7 SchedDefineTask(Move04); | |
8 | |
9 static int | |
10 run(SchedTask *s,void *rbuf, void *wbuf) | |
11 { | |
12 /* | |
13 int *i_data; | |
14 int *o_data; | |
15 long length; | |
16 | |
17 i_data = (int*)s->get_input(rbuf, 0); | |
18 o_data = (int*)s->get_output(wbuf, 0); | |
19 length = (long)s->get_param(0); | |
20 | |
21 for (int i = 0; i < length; i++) { | |
22 o_data[i] = i_data[i] * 2; | |
23 } | |
24 */ | |
25 return 0; | |
26 } |