Mercurial > hg > Members > kono > Cerium
diff Renderer/Engine/Light.cc @ 597:5c5cd31b9d43
add Light Object
author | yutaka@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Thu, 05 Nov 2009 20:17:59 +0900 |
parents | |
children | d0b8860c17f8 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Renderer/Engine/Light.cc Thu Nov 05 20:17:59 2009 +0900 @@ -0,0 +1,42 @@ +#include <math.h> +#include "SceneGraphRoot.h" +#include "Light.h" +#include "sys.h" +#include "Scheduler.h" +#include "show_time.h" +#include "TaskManager.h" + +static void +light_move(SceneGraphPtr node, int screen_w, int screen_h) +{ + +} + +static void +light_collision(SceneGraphPtr node, int screen_w, int screen_h, + SceneGraphPtr tree) +{ +} + +/** + * @param w Width of screen + * @param h Height of screen + */ +Light::Light(float w, float h) +{ + name = (char*)"Light"; + + // Screen の真ん中を初期値とする + xyz[0] = w/2.0f; + xyz[1] = h/2.0f; + xyz[2] = 0; + xyz[3] = 1.0f; + + this->set_move_collision(light_move, light_collision); +} + +Light::~Light(void) +{ + +} +