Mercurial > hg > Game > Cerium
view Renderer/Engine/task/RunMove.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 | 45f7ab7101ea |
children | c3b4ddd4ccdc |
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); int width = (int)smanager->get_param(1); int height = (int)smanager->get_param(2); SceneGraphRoot *sgroot = sgchange->sgroot_A; sgroot->updateControllerState(); sgroot->oneExecute(width, height); sgchange->viewer->light_xyz_stock = sgroot->getLightVector(); return 0; }