Mercurial > hg > Game > Cerium
comparison Renderer/Engine/SceneGraphRoot.h @ 761:c0a8af52fa43 draft
add lights
author | yutaka@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Sat, 06 Feb 2010 03:02:48 +0900 |
parents | 45f7ab7101ea |
children | b480fc04206f |
comparison
equal
deleted
inserted
replaced
760:0a602ba186e5 | 761:c0a8af52fa43 |
---|---|
54 | 54 |
55 // カメラオブジェクト | 55 // カメラオブジェクト |
56 Camera *camera; | 56 Camera *camera; |
57 | 57 |
58 // 光源のオブジェクト | 58 // 光源のオブジェクト |
59 SceneGraphPtr light; | 59 SceneGraphPtr light[4]; |
60 // 光源の疑似 xml file | 60 // 光源の疑似 xml file |
61 float light_vector[4]; | 61 // 光源は4つで決め打ち。 |
62 // 4 * lightnum (4) = 16; | |
63 float light_vector[16]; | |
62 | 64 |
63 // SceneGraphIterator | 65 // SceneGraphIterator |
64 SceneGraphIteratorPtr iterator; | 66 SceneGraphIteratorPtr iterator; |
65 | 67 |
66 // fd of Linda taple space | 68 // fd of Linda taple space |
94 void setSceneData(SceneGraphPtr sg); | 96 void setSceneData(SceneGraphPtr sg); |
95 Pad *getController(); | 97 Pad *getController(); |
96 SceneGraphIteratorPtr getIterator(); | 98 SceneGraphIteratorPtr getIterator(); |
97 SceneGraphIteratorPtr getIterator(SceneGraphPtr list); | 99 SceneGraphIteratorPtr getIterator(SceneGraphPtr list); |
98 CameraPtr getCamera(); | 100 CameraPtr getCamera(); |
99 SceneGraphPtr getLight(); | 101 SceneGraphPtr getLight(int id); |
100 float* getLightVector(); | 102 float* getLightVector(); |
101 | 103 |
102 /* Other System API */ | 104 /* Other System API */ |
103 void allExecute(int screen_w, int screen_h); | 105 void allExecute(int screen_w, int screen_h); |
104 void oneExecute(int screen_w, int screen_h); | 106 void oneExecute(int screen_w, int screen_h); |