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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
752
5651114dcfeb add task/RunMove
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
1 #include <stdlib.h>
5651114dcfeb add task/RunMove
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
2 #include <string.h>
5651114dcfeb add task/RunMove
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
3 #include "RunMove.h"
5651114dcfeb add task/RunMove
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
4 #include "SgChange.h"
5651114dcfeb add task/RunMove
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
5
5651114dcfeb add task/RunMove
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
6 SchedDefineTask(RunMove);
5651114dcfeb add task/RunMove
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
7
5651114dcfeb add task/RunMove
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
8 static int
5651114dcfeb add task/RunMove
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
9 run(SchedTask *smanager, void *rbuf , void *wbuf)
5651114dcfeb add task/RunMove
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
10 {
5651114dcfeb add task/RunMove
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
11 //SceneGraphRoot *sgroot = (SceneGraphRoot *)smanager->get_param(0);
5651114dcfeb add task/RunMove
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
12 SgChange *sgchange = (SgChange *)smanager->get_param(0);
823
c3b4ddd4ccdc 64bit (int) -> (long)
tkaito
parents: 759
diff changeset
13 long width = (long)smanager->get_param(1);
c3b4ddd4ccdc 64bit (int) -> (long)
tkaito
parents: 759
diff changeset
14 long height = (long)smanager->get_param(2);
752
5651114dcfeb add task/RunMove
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
15 SceneGraphRoot *sgroot = sgchange->sgroot_A;
5651114dcfeb add task/RunMove
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
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
5651114dcfeb add task/RunMove
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
18 sgchange->viewer->light_xyz_stock = sgroot->getLightVector();
5651114dcfeb add task/RunMove
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
19
5651114dcfeb add task/RunMove
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
20 return 0;
5651114dcfeb add task/RunMove
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
21 }