Mercurial > hg > Game > Cerium
diff 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 |
line wrap: on
line diff
--- a/Renderer/Engine/SceneGraphRoot.h Thu Feb 04 14:50:01 2010 +0900 +++ b/Renderer/Engine/SceneGraphRoot.h Sat Feb 06 03:02:48 2010 +0900 @@ -56,9 +56,11 @@ Camera *camera; // 光源のオブジェクト - SceneGraphPtr light; + SceneGraphPtr light[4]; // 光源の疑似 xml file - float light_vector[4]; + // 光源は4つで決め打ち。 + // 4 * lightnum (4) = 16; + float light_vector[16]; // SceneGraphIterator SceneGraphIteratorPtr iterator; @@ -96,7 +98,7 @@ SceneGraphIteratorPtr getIterator(); SceneGraphIteratorPtr getIterator(SceneGraphPtr list); CameraPtr getCamera(); - SceneGraphPtr getLight(); + SceneGraphPtr getLight(int id); float* getLightVector(); /* Other System API */