view Renderer/Engine/spe/UpdateKey.cc @ 986:ac437c3cf766 akira

double buffering of spanpack/polgonpack not yet worked.
author root@henri.cr.ie.u-ryukyu.ac.jp
date Fri, 01 Oct 2010 03:42:25 +0900
parents 496a8159e840
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;
}