Mercurial > hg > Game > Cerium
changeset 585:083883af1c9c draft
chain_old
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 26 Oct 2009 09:03:14 +0900 |
parents | 6dfd8e6bdef3 |
children | 7e33deb9d3f4 |
files | Renderer/Test/Makefile.macosx Renderer/Test/chain_old.cc |
diffstat | 2 files changed, 11 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/Renderer/Test/Makefile.macosx Sun Oct 25 20:24:53 2009 +0900 +++ b/Renderer/Test/Makefile.macosx Mon Oct 26 09:03:14 2009 +0900 @@ -10,7 +10,7 @@ .cc.o: $(CC) $(CFLAGS) -c $< -o $@ -ALL = ball_bound boss1_action direction gaplant ieshoot node panel universe untitled vacuum send_linda dynamic writer +ALL = ball_bound boss1_action direction gaplant ieshoot node panel universe untitled vacuum send_linda dynamic writer chain_old all: $(ALL) BALL_BOUND_OBJ = ball_bound.o @@ -65,6 +65,10 @@ writer : $(WRITER_OBJ) $(CC) -o $@ $? $(LIBS) +CHAIN_OBJ = chain_old.o +chain_old : $(CHAIN_OBJ) + $(CC) -o $@ $? $(LIBS) + run: $(TARGET) sudo ./$(TARGET) -width 576 -height 384 -bpp 32
--- a/Renderer/Test/chain_old.cc Sun Oct 25 20:24:53 2009 +0900 +++ b/Renderer/Test/chain_old.cc Mon Oct 26 09:03:14 2009 +0900 @@ -1,9 +1,9 @@ #include <iostream> #include <math.h> #include "SceneGraphRoot.h" -#include "SGList.h" #include "SceneGraph.h" #include "TaskManager.h" +#include "Chain.h" #include "Func.h" @@ -127,14 +127,14 @@ } MainLoopPtr -chain_old::init(Viewer *sgroot, int w, int h) +Chain::init(Viewer *sgroot, int w, int h) { SceneGraphPtr root_old_chain, chain; CHAIN_VARS rcv; - sgroot->createFromXMLfile(manager,"xml_file/chain.xml"); + sgroot->createFromXMLfile("xml_file/chain.xml"); - root_old_chain = sgroot->createSceneGraph(CHAIN); + root_old_chain = sgroot->createSceneGraph("CHAIN"); root_old_chain->set_move_collision(chain_old_move_ope, chain_old_collision); init_chainold_vars(&rcv); rcv.next_x = w / 2; @@ -142,7 +142,7 @@ set_old_vector(&rcv, root_old_chain); for(int i = 0; i < CHAIN_LEN; i++) { - chain = sgroot->createSceneGraph(CHAIN); + chain = sgroot->createSceneGraph("CHAIN"); chain->id = i; init_chainold_vars(&cv[i]); cv[i].x = 0; @@ -161,7 +161,7 @@ extern Application * application() { - return new ball_bound(); + return new Chain(); } const char *usr_help_str = "Usage: ./test_nogl [OPTION]\n";