comparison Renderer/Test/ppe/Property.cc @ 965:1089f24bc86a

removing user task from Renderer Engine
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 06 Aug 2010 19:59:23 +0900
parents Renderer/Engine/task/Property.cc@2575791a333a
children
comparison
equal deleted inserted replaced
964:cf64bc1b8062 965:1089f24bc86a
1 #include <stdio.h>
2 #include <string.h>
3 #include <math.h>
4 #include "Property.h"
5 #include "Func.h"
6 #include "types.h"
7
8 /* これは必須 */
9 SchedDefineTask(PropertyTask);
10
11 typedef struct {
12 float x, y, z;
13 } Property, *PropertyPtr;
14
15 static int
16 run(SchedTask *s,void *rbuf, void *wbuf)
17 {
18 PropertyPtr property = (PropertyPtr)s->get_input(rbuf, 0);
19 PropertyPtr update_property = (PropertyPtr)s->get_output(wbuf, 0);
20
21 property->x += 1.0f;
22 property->y += 1.0f;
23 property->z += 1.0f;
24
25 memcpy((void*)update_property, (void*)property, sizeof(Property));
26 return 0;
27 }