comparison TaskManager/Test/test_render/SceneGraphRoot.h @ 201:9484318b3e8f draft

add SceneGraphIterator
author gongo@gendarme.cr.ie.u-ryukyu.ac.jp
date Mon, 26 Jan 2009 16:46:59 +0900
parents 1fd0107ebb25
children 335ea3665fcd
comparison
equal deleted inserted replaced
200:efd7e4712342 201:9484318b3e8f
5 # include "SceneGraph.h" 5 # include "SceneGraph.h"
6 #endif 6 #endif
7 7
8 #ifndef INCLUDED_CAMERA 8 #ifndef INCLUDED_CAMERA
9 # include "Camera.h" 9 # include "Camera.h"
10 #endif
11
12 #ifndef INCLUDED_SCENE_GRAPH_ITERATOR
13 # include "SceneGraphIterator.h"
10 #endif 14 #endif
11 15
12 class SceneGraphRoot { 16 class SceneGraphRoot {
13 public: 17 public:
14 /* Constructor, Destructor */ 18 /* Constructor, Destructor */
32 Pad *controller; 36 Pad *controller;
33 37
34 // カメラオブジェクト 38 // カメラオブジェクト
35 Camera *camera; 39 Camera *camera;
36 40
41 // SceneGraphIterator
42 SceneGraphIteratorPtr iterator;
43
37 /** 44 /**
38 * Functions 45 * Functions
39 */ 46 */
40 /* User API */ 47 /* User API */
41 void createFromXMLfile(const char *); 48 void createFromXMLfile(const char *);
42 SceneGraphPtr createSceneGraph(int id); 49 SceneGraphPtr createSceneGraph(int id);
50 SceneGraphPtr createSceneGraph(void);
43 void setSceneData(SceneGraphPtr sg); 51 void setSceneData(SceneGraphPtr sg);
44 Pad *getController(void); 52 Pad *getController(void);
53 SceneGraphIteratorPtr getIterator(void);
54 SceneGraphIteratorPtr getIterator(SceneGraphPtr list);
45 55
46 /* Other System API */ 56 /* Other System API */
47 void allExecute(int screen_w, int screen_h); 57 void allExecute(int screen_w, int screen_h);
48 void checkRemove(void); 58 void checkRemove(void);
49 SceneGraphPtr getExecuteSceneGraph(void); 59 SceneGraphPtr getExecuteSceneGraph(void);