Mercurial > hg > Game > Cerium
comparison TaskManager/Test/test_render/SceneGraphRoot.h @ 518:003fe4ee39e2 draft
work dynamic_create
author | aaa |
---|---|
date | Wed, 21 Oct 2009 19:03:07 +0900 |
parents | d2772feb34e3 |
children | 638bd307cde1 |
comparison
equal
deleted
inserted
replaced
516:d3bc594204c2 | 518:003fe4ee39e2 |
---|---|
7 #include "SceneGraphIterator.h" | 7 #include "SceneGraphIterator.h" |
8 #include "Application.h" | 8 #include "Application.h" |
9 #include "SceneGraphList.h" | 9 #include "SceneGraphList.h" |
10 #include "SgStruct.h" | 10 #include "SgStruct.h" |
11 #include "TaskManager.h" | 11 #include "TaskManager.h" |
12 #include <sys/types.h> | |
13 | |
14 typedef struct { | |
15 caddr_t file_mmap; | |
16 off_t size; | |
17 } st_mmap_t; | |
12 | 18 |
13 class SceneGraphRoot { | 19 class SceneGraphRoot { |
14 public: | 20 public: |
15 /* Constructor, Destructor */ | 21 /* Constructor, Destructor */ |
16 SceneGraphRoot(float w, float h); | 22 SceneGraphRoot(float w, float h); |
54 /** | 60 /** |
55 * Functions | 61 * Functions |
56 */ | 62 */ |
57 /* User API */ | 63 /* User API */ |
58 void createFromXMLfile(TaskManager *manager, const char *); | 64 void createFromXMLfile(TaskManager *manager, const char *); |
59 void createFromXMLmemory(TaskManager *manager, const char *xml); | 65 //void createFromXMLmemory(TaskManager *manager, const char *xml); |
66 void createFromXMLmemory(TaskManager *manager, st_mmap_t mmap_t); | |
60 SceneGraphPtr createSceneGraph(int id); | 67 SceneGraphPtr createSceneGraph(int id); |
61 SceneGraphPtr createSceneGraph(void); | 68 SceneGraphPtr createSceneGraph(void); |
62 SceneGraphPtr createSceneGraph(char *name); | 69 SceneGraphPtr createSceneGraph(char *name); |
63 void setSceneData(SceneGraphPtr sg); | 70 void setSceneData(SceneGraphPtr sg); |
64 Pad *getController(void); | 71 Pad *getController(void); |