Mercurial > hg > Game > Cerium
diff Renderer/Test/title.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/title.cc Sat Nov 21 11:20:29 2009 +0900 +++ b/Renderer/Test/title.cc Wed Nov 25 21:56:14 2009 +0900 @@ -4,9 +4,9 @@ extern int redcube; void -title_collision(SceneGraphPtr node, int w, int h,SceneGraphPtr tree) +title_collision(SceneGraphPtr node, void *sgroot_, int w, int h,SceneGraphPtr tree) { - + SceneGraphRoot *sgroot = (SceneGraphRoot *)sgroot_; Pad *pad = sgroot->getController(); if(pad->start.isPush()) { @@ -21,7 +21,7 @@ back->addChild(vacuum); - add_cubecollision_object(redcube,vacuum,w,h); + add_cubecollision_object(redcube,vacuum,w,h, sgroot); sgroot->setSceneData(back);