Mercurial > hg > Members > kono > Cerium
annotate Renderer/Test/long_cube.cc @ 583:530d189ebf1a
add writer
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 25 Oct 2009 20:11:38 +0900 |
parents | ec72b601b71f |
children |
rev | line source |
---|---|
507 | 1 #include "SceneGraphRoot.h" |
557
ec72b601b71f
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
2 #include "long_cube.h" |
507 | 3 |
4 // prototype | |
5 static void lcube_move(SceneGraphPtr node, int screen_w, int screen_h); | |
6 //static void lcube_collision(SceneGraphPtr node, int screen_w, int screen_h); | |
7 | |
8 | |
9 static void | |
10 lcube_move(SceneGraphPtr node, int screen_w, int screen_h) | |
11 { | |
12 } | |
13 | |
14 static void | |
15 lcube_collision(SceneGraphPtr node, int screen_w, int screen_h, | |
16 SceneGraphPtr tree) | |
17 { | |
18 } | |
19 | |
20 | |
557
ec72b601b71f
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
21 MainLoopPtr |
ec72b601b71f
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
22 lcube_init(Viewer *sgroot, int screen_w, int screen_h) |
507 | 23 { |
24 SceneGraphPtr lcube; | |
25 | |
26 sgroot->createFromXMLfile(manager, "xml_file/LongCube.xml"); | |
27 lcube = sgroot->createSceneGraph(LongCube); | |
28 lcube->set_move_collision(lcube_move, lcube_collision); | |
29 | |
30 sgroot->setSceneData(lcube); | |
557
ec72b601b71f
fix examlples (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
31 return sgroot; |
507 | 32 } |