Mercurial > hg > Game > Cerium
annotate 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 |
rev | line source |
---|---|
752 | 1 #include <stdlib.h> |
2 #include <string.h> | |
3 #include "RunMove.h" | |
4 #include "SgChange.h" | |
5 | |
6 SchedDefineTask(RunMove); | |
7 | |
8 static int | |
9 run(SchedTask *smanager, void *rbuf , void *wbuf) | |
10 { | |
11 //SceneGraphRoot *sgroot = (SceneGraphRoot *)smanager->get_param(0); | |
12 SgChange *sgchange = (SgChange *)smanager->get_param(0); | |
823 | 13 long width = (long)smanager->get_param(1); |
14 long height = (long)smanager->get_param(2); | |
752 | 15 SceneGraphRoot *sgroot = sgchange->sgroot_A; |
16 sgroot->updateControllerState(); | |
759
45f7ab7101ea
first of all commit, not work Rendering/Test/create_task
hiroki
parents:
752
diff
changeset
|
17 sgroot->oneExecute(width, height); |
752 | 18 sgchange->viewer->light_xyz_stock = sgroot->getLightVector(); |
19 | |
20 return 0; | |
21 } |