Mercurial > hg > Members > kono > Cerium
view Renderer/Test/SgRootChange.cc @ 691:9d1bcc07734b
Test/SgRootChange not work
author | hiroki@localhost.localdomain |
---|---|
date | Tue, 08 Dec 2009 16:48:01 +0900 |
parents | d0b8860c17f8 |
children | fc0227b5cb5a |
line wrap: on
line source
#include <math.h> #include <stdlib.h> #include "SceneGraphRoot.h" #include "MainLoop.h" #include "SgRootChange.h" // prototype MainLoopPtr SgRootChange::init(Viewer *sgroot, int screen_w, int screen_h) { return sgroot; } MainLoopPtr SgRootChange::init_only_sg(SgChange *sgroot, int screen_w, int screen_h) { SceneGraphPtr ball; sgroot->createFromXMLfile("xml_file/Ball.xml"); ball = sgroot->createSceneGraph("Ball"); sgroot->setSceneData(ball); return sgroot; } extern Application * application() { return new SgRootChange(); } const char *usr_help_str = "Usage: ./test_nogl [OPTION]\n"; extern int sg_init(TaskManager *manager, int argc, char *argv[]); extern void task_initialize(); static void TMend(TaskManager *manager); int TMmain(TaskManager *manager, int argc, char *argv[]) { task_initialize(); manager->set_TMend(TMend); return sg_init(manager, argc, argv); } void TMend(TaskManager *manager) { printf("test_nogl end\n"); } /* end */