diff stage_init.cc @ 11:8c7a2e7cb9e0

test
author tkaito
date Sat, 17 Jul 2010 14:12:53 +0900
parents 27d3291a7c82
children aecc2199251e
line wrap: on
line diff
--- a/stage_init.cc	Tue Jul 13 18:09:25 2010 +0900
+++ b/stage_init.cc	Sat Jul 17 14:12:53 2010 +0900
@@ -15,41 +15,27 @@
   back1->addChild(title);
 
 }
-/*
-void
-title_move(SceneGraphPtr node, void *sgroot_, int w, int h)
-{
-  sgroot->set_move_task(obj, TITLE_MOVE, (void*)property, size, create_title);
-}
-
-void
-title_coll(SceneGraphPtr node, void *sgroot_, int w, int h, SceneGraphPtr tree)
-{
-}
-*/
 
 ObjProperty back_property;
 
 void
-create_title_back(void *sgroot_, int w, int h) 
+create_title_back(Viewer *sgroot_, int w, int h) 
 {
-  Viewer *sgroot = (Viewer *)sgroot_;
+  Viewer *sgroot = sgroot_;
   SceneGraphPtr back;
   back_property.flag = 0;
 
   back = sgroot->createSceneGraph();
-  //back->set_move_collision(back_move, back_coll);
   sgroot->setSceneData(back);
 
   SceneGraphPtr title = (SceneGraphPtr)charactor[0].root;
-  ObjPropertyPtr titlep;
-  titlep->x = w/2;
-  titlep->y = h/2;
-  titlep->root = (void*)title;
-  titlep->parent = (void*)back;
+  ObjProperty titlep;
+  titlep.x = w/2;
+  titlep.y = h/2;
+  titlep.root = (void*)title;
+  titlep.parent = (void*)back;
   int size = sizeof(ObjProperty)*16;
-  //sgroot->set_move_property(title, title_move, (void*)property, size);
-  sgroot->set_move_task(title, TITLE_MOVE, (void*)titlep, size, create_title);
+  sgroot->set_move_task(title, TITLE_MOVE, (void*)&titlep, size, create_title);
 }