Mercurial > hg > Game > Cerium
comparison Renderer/Engine/SceneGraphRoot.h @ 677:24054155368c draft
add Load light info for some spe
author | yutaka@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Sun, 06 Dec 2009 07:40:26 +0900 |
parents | 7a311860a76e |
children | 77f936380930 |
comparison
equal
deleted
inserted
replaced
676:fbccad536db1 | 677:24054155368c |
---|---|
2 #define INCLUDED_SCENE_GRAPH_ROOT | 2 #define INCLUDED_SCENE_GRAPH_ROOT |
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 "Light.h" | |
8 #include "SceneGraphIterator.h" | 7 #include "SceneGraphIterator.h" |
9 #include <sys/types.h> | 8 #include <sys/types.h> |
10 | 9 |
11 typedef struct { | 10 typedef struct { |
12 caddr_t file_mmap; | 11 caddr_t file_mmap; |
51 | 50 |
52 // カメラオブジェクト | 51 // カメラオブジェクト |
53 Camera *camera; | 52 Camera *camera; |
54 | 53 |
55 // 光源のオブジェクト | 54 // 光源のオブジェクト |
56 Light *light; | 55 SceneGraphPtr light; |
56 // 光源の疑似 xml file | |
57 float light_vector[4]; | |
57 | 58 |
58 // SceneGraphIterator | 59 // SceneGraphIterator |
59 SceneGraphIteratorPtr iterator; | 60 SceneGraphIteratorPtr iterator; |
60 | 61 |
61 // fd of Linda taple space | 62 // fd of Linda taple space |
62 int tid; | 63 int tid; |
63 | 64 |
64 /** | 65 /** |
65 * Functions | 66 * Functions |
66 */ | 67 */ |
67 /* User API */ | 68 /* User API */ |
75 void setSceneData(SceneGraphPtr sg); | 76 void setSceneData(SceneGraphPtr sg); |
76 Pad *getController(); | 77 Pad *getController(); |
77 SceneGraphIteratorPtr getIterator(); | 78 SceneGraphIteratorPtr getIterator(); |
78 SceneGraphIteratorPtr getIterator(SceneGraphPtr list); | 79 SceneGraphIteratorPtr getIterator(SceneGraphPtr list); |
79 CameraPtr getCamera(); | 80 CameraPtr getCamera(); |
80 LightPtr getLight(); | 81 SceneGraphPtr getLight(); |
82 float* getLightVector(); | |
81 | 83 |
82 /* Other System API */ | 84 /* Other System API */ |
83 void allExecute(int screen_w, int screen_h); | 85 void allExecute(int screen_w, int screen_h); |
84 void checkRemove(); | 86 void checkRemove(); |
85 SceneGraphPtr getExecuteSceneGraph(); | 87 SceneGraphPtr getExecuteSceneGraph(); |