Mercurial > hg > Members > kono > Cerium
comparison 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 |
comparison
equal
deleted
inserted
replaced
596:cfeca966f571 | 597:5c5cd31b9d43 |
---|---|
1 #include <math.h> | |
2 #include "SceneGraphRoot.h" | |
3 #include "Light.h" | |
4 #include "sys.h" | |
5 #include "Scheduler.h" | |
6 #include "show_time.h" | |
7 #include "TaskManager.h" | |
8 | |
9 static void | |
10 light_move(SceneGraphPtr node, int screen_w, int screen_h) | |
11 { | |
12 | |
13 } | |
14 | |
15 static void | |
16 light_collision(SceneGraphPtr node, int screen_w, int screen_h, | |
17 SceneGraphPtr tree) | |
18 { | |
19 } | |
20 | |
21 /** | |
22 * @param w Width of screen | |
23 * @param h Height of screen | |
24 */ | |
25 Light::Light(float w, float h) | |
26 { | |
27 name = (char*)"Light"; | |
28 | |
29 // Screen の真ん中を初期値とする | |
30 xyz[0] = w/2.0f; | |
31 xyz[1] = h/2.0f; | |
32 xyz[2] = 0; | |
33 xyz[3] = 1.0f; | |
34 | |
35 this->set_move_collision(light_move, light_collision); | |
36 } | |
37 | |
38 Light::~Light(void) | |
39 { | |
40 | |
41 } | |
42 |