Mercurial > hg > Members > kono > Cerium
diff Renderer/Test/universe.cc @ 656:d0b8860c17f8
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 | b21a013051a2 |
children | 4dc02d3e98bb |
line wrap: on
line diff
--- a/Renderer/Test/universe.cc Sat Nov 21 11:20:29 2009 +0900 +++ b/Renderer/Test/universe.cc Wed Nov 25 21:56:14 2009 +0900 @@ -3,26 +3,26 @@ #include "universe.h" static void -earth_collision(SceneGraphPtr node, int screen_w, int screen_h, +earth_collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h, SceneGraphPtr tree) { } static void -moon_collision(SceneGraphPtr node, int screen_w, int screen_h, +moon_collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h, SceneGraphPtr tree) { } static void -moon_move(SceneGraphPtr node, int screen_w, int screen_h) +moon_move(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h) { node->angle[0] += 3.0f; } static void -earth_move(SceneGraphPtr node, int screen_w, int screen_h) +earth_move(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h) { node->angle[1] += 1.0f; if (node->angle[1] > 360.0f) { @@ -68,6 +68,11 @@ return sgroot; } +MainLoopPtr +universe::init_only_sg(SgChange *sgroot, int screen_w, int screen_h) +{ + return sgroot; +} extern Application * application() {