Mercurial > hg > Game > Cerium
changeset 752:5651114dcfeb draft
add task/RunMove
author | hiroki@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Wed, 27 Jan 2010 18:23:40 +0900 |
parents | 1666dba6f6d9 |
children | e6b9bbed117c |
files | Renderer/Engine/task/RunMove.cc Renderer/Engine/task/RunMove.h |
diffstat | 2 files changed, 29 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Renderer/Engine/task/RunMove.cc Wed Jan 27 18:23:40 2010 +0900 @@ -0,0 +1,22 @@ +#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->allExecute(width, height); + sgchange->viewer->light_xyz_stock = sgroot->getLightVector(); + + return 0; +}