Mercurial > hg > Game > Cerium
annotate Renderer/Engine/task/DataUpdate.cc @ 915:aa9728394194 draft
create_polygon_task ..not worked yet.
author | yutaka@localhost.localdomain |
---|---|
date | Fri, 23 Jul 2010 18:05:40 +0900 |
parents | c3b4ddd4ccdc |
children | 37bd2b0694e2 |
rev | line source |
---|---|
750 | 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); | |
750 | 15 void *global_data = (void*)s->global_get(load_id); |
16 | |
17 memcpy(global_data,idata,size); | |
18 | |
19 return 0; | |
20 } |