Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Test/test_render/snake_bg.cpp @ 188:06f39635a9b0
メモりリーク箇所発見:TaskManager/Test/test_render/ChangeLog参照
author | gongo@localhost.localdomain |
---|---|
date | Thu, 08 Jan 2009 15:34:19 +0900 |
parents | c8c8bb4e9e58 |
children |
rev | line source |
---|---|
143 | 1 #include "SceneGraph.h" |
153
c8c8bb4e9e58
画像のサイズテストを加える -sg = [2,3,4]
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents:
152
diff
changeset
|
2 #include "xml_file/snake576x384.h" |
c8c8bb4e9e58
画像のサイズテストを加える -sg = [2,3,4]
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents:
152
diff
changeset
|
3 #include "xml_file/snake800x600.h" |
152 | 4 #include "xml_file/1920x1080.h" |
143 | 5 |
6 static void snake_move(SceneGraphPtr node, int screen_w, int screen_h); | |
7 static void snake_collision(SceneGraphPtr node, int screen_w, int screen_h, | |
8 SceneGraphPtr tree); | |
9 | |
10 static void | |
11 snake_move(SceneGraphPtr node, int screen_w, int screen_h) | |
12 { | |
13 } | |
14 | |
15 static void | |
16 snake_collision(SceneGraphPtr node, int screen_w, int screen_h, | |
17 SceneGraphPtr tree) | |
18 { | |
19 } | |
20 | |
21 void | |
153
c8c8bb4e9e58
画像のサイズテストを加える -sg = [2,3,4]
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents:
152
diff
changeset
|
22 create_snake_bg(int bg) |
143 | 23 { |
153
c8c8bb4e9e58
画像のサイズテストを加える -sg = [2,3,4]
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents:
152
diff
changeset
|
24 if (bg == 2) { |
c8c8bb4e9e58
画像のサイズテストを加える -sg = [2,3,4]
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents:
152
diff
changeset
|
25 SceneGraph::createFromXMLfile("xml_file/snake576x384.xml"); |
c8c8bb4e9e58
画像のサイズテストを加える -sg = [2,3,4]
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents:
152
diff
changeset
|
26 } else if (bg == 3) { |
c8c8bb4e9e58
画像のサイズテストを加える -sg = [2,3,4]
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents:
152
diff
changeset
|
27 SceneGraph::createFromXMLfile("xml_file/snake800x600.xml"); |
c8c8bb4e9e58
画像のサイズテストを加える -sg = [2,3,4]
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents:
152
diff
changeset
|
28 } else { |
c8c8bb4e9e58
画像のサイズテストを加える -sg = [2,3,4]
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents:
152
diff
changeset
|
29 SceneGraph::createFromXMLfile("xml_file/1920x1080.xml"); |
c8c8bb4e9e58
画像のサイズテストを加える -sg = [2,3,4]
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents:
152
diff
changeset
|
30 } |
c8c8bb4e9e58
画像のサイズテストを加える -sg = [2,3,4]
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents:
152
diff
changeset
|
31 |
143 | 32 Plane->set_move_collision(snake_move, snake_collision); |
33 } |