Mercurial > hg > Game > Cerium
view Renderer/Engine/task/RunMove.cc @ 898:302ebfc75a79 draft
merge
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 16 Jul 2010 19:00:49 +0900 |
parents | c3b4ddd4ccdc |
children |
line wrap: on
line source
#include <stdlib.h> #include <string.h> #include "RunMove.h" #include "SgChange.h" SchedDefineTask(RunMove); static int run(SchedTask *smanager, void *rbuf , void *wbuf) { //SceneGraphRoot *sgroot = (SceneGraphRoot *)smanager->get_param(0); SgChange *sgchange = (SgChange *)smanager->get_param(0); long width = (long)smanager->get_param(1); long height = (long)smanager->get_param(2); SceneGraphRoot *sgroot = sgchange->sgroot_A; sgroot->updateControllerState(); sgroot->oneExecute(width, height); sgchange->viewer->light_xyz_stock = sgroot->getLightVector(); return 0; }