comparison Renderer/Engine/SceneGraphRoot.h @ 575:341f1f881a9b draft

Linda API worked. (slightly unreliable)
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 23 Oct 2009 15:53:24 +0900
parents 5193d51294a2
children ec9dd24c2dc8
comparison
equal deleted inserted replaced
574:084804f77892 575:341f1f881a9b
3 3
4 #include "SceneGraph.h" 4 #include "SceneGraph.h"
5 #include "SceneGraphArray.h" 5 #include "SceneGraphArray.h"
6 #include "Camera.h" 6 #include "Camera.h"
7 #include "SceneGraphIterator.h" 7 #include "SceneGraphIterator.h"
8 // #include "Application.h"
9 #include "SceneGraphList.h"
10 #include "SgStruct.h"
11 // #include "TaskManager.h"
12 #include <sys/types.h> 8 #include <sys/types.h>
13 9
14 typedef struct { 10 typedef struct {
15 caddr_t file_mmap; 11 caddr_t file_mmap;
16 off_t size; 12 off_t size;
25 ~SceneGraphRoot(); 21 ~SceneGraphRoot();
26 22
27 /* Variables */ 23 /* Variables */
28 TaskManager *tmanager; 24 TaskManager *tmanager;
29 25
30 // sgid と name を持った SgStruct のリスト
31 SceneGraphList *sglist;
32
33 // xml から読み込んだ、オリジナルの SceneGraph 26 // xml から読み込んだ、オリジナルの SceneGraph
34 SceneGraphPtr *sg_src; 27 // Static Singleton
35 int sg_src_length; 28 // SceneGraphPtr *sg_src;
29 // int sg_src_length;
36 30
37 // move, collision 用の SceneGraph (tree) 31 // move, collision 用の SceneGraph (tree)
38 SceneGraphPtr sg_exec_tree; 32 SceneGraphPtr sg_exec_tree;
39 33
40 // 描画用の SceneGraph List (tree) 34 // 描画用の SceneGraph List (tree)
94 void registSceneGraphList(SceneGraphPtr sg); 88 void registSceneGraphList(SceneGraphPtr sg);
95 void addSceneGraphList(TaskManager *manager, SceneGraphPtr tmp); 89 void addSceneGraphList(TaskManager *manager, SceneGraphPtr tmp);
96 void addNext(SceneGraphPtr sg); 90 void addNext(SceneGraphPtr sg);
97 void allRemove(SceneGraphPtr list); 91 void allRemove(SceneGraphPtr list);
98 92
99 int getLast() { 93 int getLast() ;
100 return sglist->getLast()->id;
101 }
102 94
103 }; 95 };
104 96
105 typedef SceneGraphRoot *SceneGraphRootPtr; 97 typedef SceneGraphRoot *SceneGraphRootPtr;
106 98