Mercurial > hg > Game > Cerium
view Renderer/Engine/spe/DataUpdate.cc @ 761:c0a8af52fa43 draft
add lights
author | yutaka@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Sat, 06 Feb 2010 03:02:48 +0900 |
parents | 115edac878e2 |
children | 4d83a6a958fd |
line wrap: on
line source
#include <stdio.h> #include "DataUpdate.h" #include "Func.h" #include "string.h" /* これは必須 */ SchedDefineTask(DataUpdate); static int run(SchedTask *s, void *rbuf, void *wbuf) { void *idata = (void*)s->get_input(rbuf, 0); int size = (int)s->get_param(0); int load_id = (int)s->get_param(1); void *global_data = (void*)s->global_get(load_id); if (size != 64) { printf("hogehoge\n"); } memcpy(global_data,idata,size); return 0; }