Mercurial > hg > Game > Cerium
diff Renderer/Test/game_over.cc @ 653:7a311860a76e draft
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
author | hiroki@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Wed, 25 Nov 2009 21:56:14 +0900 |
parents | 338ad9c856fc |
children |
line wrap: on
line diff
--- a/Renderer/Test/game_over.cc Sat Nov 21 11:20:29 2009 +0900 +++ b/Renderer/Test/game_over.cc Wed Nov 25 21:56:14 2009 +0900 @@ -3,9 +3,8 @@ void -gameover_scene(int w,int h,SceneGraphPtr node) +gameover_scene(int w,int h,SceneGraphPtr node, SceneGraphRoot *sgroot) { - SceneGraphPtr over; over = sgroot->createSceneGraph("GAMEOVER"); @@ -16,14 +15,14 @@ } void -gameover_idle(SceneGraphPtr node,int screen_w,int screen_h) +gameover_idle(SceneGraphPtr node, void *sgroot_, int screen_w,int screen_h) { } void -gameover_collision(SceneGraphPtr node,int screen_w,int screen_h,SceneGraphPtr tree) +gameover_collision(SceneGraphPtr node, void *sgroot_, int screen_w,int screen_h,SceneGraphPtr tree) { - + SceneGraphRoot *sgroot = (SceneGraphRoot *)sgroot_; Pad *pad = sgroot->getController(); if(pad->start.isPush()) {