Mercurial > hg > Game > Cerium
view Renderer/Engine/spe/DataUpdate.cc @ 725:3a97fdd53a8e draft
Light data load fix (general load routine)
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 19 Dec 2009 15:02:43 +0900 |
parents | 1afbdead7891 |
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); memcpy(global_data,idata,size); return 0; }