comparison Renderer/Engine/SceneGraphRoot.h @ 597:5c5cd31b9d43

add Light Object
author yutaka@henri.cr.ie.u-ryukyu.ac.jp
date Thu, 05 Nov 2009 20:17:59 +0900
parents 7cbffb81e214
children d0b8860c17f8
comparison
equal deleted inserted replaced
596:cfeca966f571 597:5c5cd31b9d43
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"
7 #include "SceneGraphIterator.h" 8 #include "SceneGraphIterator.h"
8 #include <sys/types.h> 9 #include <sys/types.h>
9 10
10 typedef struct { 11 typedef struct {
11 caddr_t file_mmap; 12 caddr_t file_mmap;
49 Pad *controller; 50 Pad *controller;
50 51
51 // カメラオブジェクト 52 // カメラオブジェクト
52 Camera *camera; 53 Camera *camera;
53 54
55 // 光源のオブジェクト
56 Light *light;
57
54 // SceneGraphIterator 58 // SceneGraphIterator
55 SceneGraphIteratorPtr iterator; 59 SceneGraphIteratorPtr iterator;
56 60
57 // fd of Linda taple space 61 // fd of Linda taple space
58 int tid; 62 int tid;
71 void setSceneData(SceneGraphPtr sg); 75 void setSceneData(SceneGraphPtr sg);
72 Pad *getController(); 76 Pad *getController();
73 SceneGraphIteratorPtr getIterator(); 77 SceneGraphIteratorPtr getIterator();
74 SceneGraphIteratorPtr getIterator(SceneGraphPtr list); 78 SceneGraphIteratorPtr getIterator(SceneGraphPtr list);
75 CameraPtr getCamera(); 79 CameraPtr getCamera();
80 LightPtr getLight();
76 81
77 /* Other System API */ 82 /* Other System API */
78 void allExecute(int screen_w, int screen_h); 83 void allExecute(int screen_w, int screen_h);
79 void checkRemove(); 84 void checkRemove();
80 SceneGraphPtr getExecuteSceneGraph(); 85 SceneGraphPtr getExecuteSceneGraph();