Mercurial > hg > Members > kono > Cerium
annotate Renderer/Engine/task/DataUpdate.cc @ 884:7c5a30983efa
obj_move fix
author | tkaito |
---|---|
date | Mon, 12 Jul 2010 04:12:13 +0900 |
parents | 01b6d924a560 |
children | e40dd2384357 |
rev | line source |
---|---|
751 | 1 #include <stdio.h> |
2 #include "DataUpdate.h" | |
3 #include "Func.h" | |
4 #include "string.h" | |
5 | |
6 /* これは必須 */ | |
7 SchedDefineTask(DataUpdate); | |
8 | |
9 static int | |
10 run(SchedTask *s, void *rbuf, void *wbuf) | |
11 { | |
12 void *idata = (void*)s->get_input(rbuf, 0); | |
823 | 13 long size = (long)s->get_param(0); |
14 long load_id = (long)s->get_param(1); | |
751 | 15 void *global_data = (void*)s->global_get(load_id); |
16 | |
17 memcpy(global_data,idata,size); | |
18 | |
19 return 0; | |
20 } |