Mercurial > hg > Members > kono > Cerium
diff TaskManager/Test/test_render/node.cpp @ 354:81b25e5d5379
add example/get_segment and change spe/DrawSpan.cpp
author | koba |
---|---|
date | Wed, 15 Jul 2009 17:39:51 +0900 |
parents | 58eacf676bb5 |
children | b89ba1d96fff |
line wrap: on
line diff
--- a/TaskManager/Test/test_render/node.cpp Fri Jun 05 17:07:35 2009 +0900 +++ b/TaskManager/Test/test_render/node.cpp Wed Jul 15 17:39:51 2009 +0900 @@ -1,4 +1,5 @@ #include <stdlib.h> +#include "SceneGraphRoot.h" #include "SceneGraph.h" #include "xml_file/cube.h" @@ -44,7 +45,8 @@ if ((int)node->xyz[1] > screen_h || (int)node->xyz[1] < 0) { // 実は微妙に意味が無い - srandom(random()); + // そうじゃなくて、やっちゃいけないことです。 + // srandom(random()); SceneGraphPtr p = node->clone(); p->position_init(); @@ -63,7 +65,7 @@ void node_init(void) { - SceneGraph::createFromXMLfile("xml_file/cube.xml"); + sgroot->createFromXMLfile("xml_file/cube.xml"); Cube->set_move_collision(cube_move, cube_collision); Cube->stack_xyz[0] = 2.0f; Cube->stack_xyz[1] = 2.0f;