Mercurial > hg > Game > Cerium
view Renderer/Engine/task/UpdateKey.cc @ 915:aa9728394194 draft
create_polygon_task ..not worked yet.
author | yutaka@localhost.localdomain |
---|---|
date | Fri, 23 Jul 2010 18:05:40 +0900 |
parents | eb6add789a24 |
children |
line wrap: on
line source
#include "TaskManager.h" #include "KeyStat.h" #include "UpdateKey.h" #include "Func.h" SchedDefineTask(UpdateKey); static int run(SchedTask *smanager, void *rbuf, void *wbuf) { key_stat *key = (key_stat*)smanager->get_input(rbuf, 0); key_stat *gdata = (key_stat*)smanager->global_get(KEY_STATUS); memcpy(gdata, key, sizeof(key_stat)); return 0; }