Mercurial > hg > Members > kono > Cerium
view TaskManager/Test/test_render/SceneGraphRoot.h @ 228:c254a2bd1b34
remove SceneGraph::data, add SceneGraph::coord_xyz, coord_tex, normal
author | gongo@gendarme.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Thu, 12 Feb 2009 16:31:38 +0900 |
parents | d61fded0729e |
children | 401b55a4a4dd |
line wrap: on
line source
#ifndef INCLUDED_SCENE_GRAPH_ROOT #define INCLUDED_SCENE_GRAPH_ROOT #ifndef INCLUDED_SCENE_GRAPH # include "SceneGraph.h" #endif #ifndef INCLUDED_CAMERA # include "Camera.h" #endif #ifndef INCLUDED_SCENE_GRAPH_ITERATOR # include "SceneGraphIterator.h" #endif class SceneGraphRoot { public: /* Constructor, Destructor */ SceneGraphRoot(float w, float h); ~SceneGraphRoot(void); /* Variables */ // xml から読み込んだ、オリジナルの SceneGraph SceneGraphPtr *sg_src; // move, collision 用の SceneGraph (tree) SceneGraphPtr sg_exec_tree; // 描画用の SceneGraph List (tree) SceneGraphPtr sg_draw_tree; // sg_exec_tree に対応する list SceneGraphPtr sg_available_list; // sg_draw_tree に対応する list // draw_tree は描画後削除される SceneGraphPtr sg_remove_list; // コントローラーオブジェクト (Keyboard, Joystick, ..) Pad *controller; // カメラオブジェクト Camera *camera; // SceneGraphIterator SceneGraphIteratorPtr iterator; /** * Functions */ /* User API */ void createFromXMLfile(const char *); SceneGraphPtr createSceneGraph(int id); SceneGraphPtr createSceneGraph(void); void setSceneData(SceneGraphPtr sg); Pad *getController(void); SceneGraphIteratorPtr getIterator(void); SceneGraphIteratorPtr getIterator(SceneGraphPtr list); CameraPtr getCamera(void); /* Other System API */ void allExecute(int screen_w, int screen_h); void checkRemove(void); SceneGraphPtr getExecuteSceneGraph(void); SceneGraphPtr getDrawSceneGraph(void); void updateControllerState(void); /* System API */ void registSceneGraph(SceneGraphPtr sg); void addNext(SceneGraphPtr sg); void allRemove(SceneGraphPtr list); }; typedef SceneGraphRoot *SceneGraphRootPtr; #endif extern SceneGraphRootPtr sgroot;