annotate TaskManager/Test/test_render/long_cube.cpp @ 243:c4918a1fb6c9 draft

rm warning
author e065746@localhost.localdomain
date Sun, 31 May 2009 16:26:20 +0900
parents 443c7ae1c7a7
children ce86b0186a4a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
212
gongo@localhost.localdomain
parents:
diff changeset
1 #include "SceneGraphRoot.h"
gongo@localhost.localdomain
parents:
diff changeset
2 #include "SGList.h"
gongo@localhost.localdomain
parents:
diff changeset
3
gongo@localhost.localdomain
parents:
diff changeset
4 // prototype
gongo@localhost.localdomain
parents:
diff changeset
5 static void lcube_move(SceneGraphPtr node, int screen_w, int screen_h);
238
443c7ae1c7a7 warning clean
admin@mcbk.cr.ie.u-ryukyu.ac.jp
parents: 212
diff changeset
6 //static void lcube_collision(SceneGraphPtr node, int screen_w, int screen_h);
212
gongo@localhost.localdomain
parents:
diff changeset
7
gongo@localhost.localdomain
parents:
diff changeset
8
gongo@localhost.localdomain
parents:
diff changeset
9 static void
gongo@localhost.localdomain
parents:
diff changeset
10 lcube_move(SceneGraphPtr node, int screen_w, int screen_h)
gongo@localhost.localdomain
parents:
diff changeset
11 {
gongo@localhost.localdomain
parents:
diff changeset
12 }
gongo@localhost.localdomain
parents:
diff changeset
13
gongo@localhost.localdomain
parents:
diff changeset
14 static void
gongo@localhost.localdomain
parents:
diff changeset
15 lcube_collision(SceneGraphPtr node, int screen_w, int screen_h,
gongo@localhost.localdomain
parents:
diff changeset
16 SceneGraphPtr tree)
gongo@localhost.localdomain
parents:
diff changeset
17 {
gongo@localhost.localdomain
parents:
diff changeset
18 }
gongo@localhost.localdomain
parents:
diff changeset
19
gongo@localhost.localdomain
parents:
diff changeset
20
gongo@localhost.localdomain
parents:
diff changeset
21 void
gongo@localhost.localdomain
parents:
diff changeset
22 lcube_init(int screen_w, int screen_h)
gongo@localhost.localdomain
parents:
diff changeset
23 {
gongo@localhost.localdomain
parents:
diff changeset
24 SceneGraphPtr lcube;
gongo@localhost.localdomain
parents:
diff changeset
25
gongo@localhost.localdomain
parents:
diff changeset
26 sgroot->createFromXMLfile("xml_file/LongCube.xml");
gongo@localhost.localdomain
parents:
diff changeset
27 lcube = sgroot->createSceneGraph(LongCube);
gongo@localhost.localdomain
parents:
diff changeset
28 lcube->set_move_collision(lcube_move, lcube_collision);
gongo@localhost.localdomain
parents:
diff changeset
29
gongo@localhost.localdomain
parents:
diff changeset
30 sgroot->setSceneData(lcube);
gongo@localhost.localdomain
parents:
diff changeset
31 }