Mercurial > hg > Game > Cerium
annotate Renderer/Engine/Light.cc @ 801:eb6add789a24 draft
global id
author | yutaka@localhost.localdomain |
---|---|
date | Wed, 19 May 2010 14:59:41 +0900 |
parents | 6e9e4726113e |
children | 294bc9364bee |
rev | line source |
---|---|
597 | 1 #include <math.h> |
2 #include "SceneGraphRoot.h" | |
3 #include "Light.h" | |
4 #include "sys.h" | |
5 #include "Scheduler.h" | |
6 #include "TaskManager.h" | |
7 | |
8 static void | |
653
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
597
diff
changeset
|
9 light_move(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h) |
597 | 10 { |
11 | |
12 } | |
13 | |
14 static void | |
653
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
597
diff
changeset
|
15 light_collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h, |
597 | 16 SceneGraphPtr tree) |
17 { | |
18 } | |
19 | |
20 /** | |
21 * @param w Width of screen | |
22 * @param h Height of screen | |
23 */ | |
24 Light::Light(float w, float h) | |
25 { | |
26 name = (char*)"Light"; | |
27 | |
28 // Screen の真ん中を初期値とする | |
29 xyz[0] = w/2.0f; | |
30 xyz[1] = h/2.0f; | |
31 xyz[2] = 0; | |
32 xyz[3] = 1.0f; | |
33 | |
34 this->set_move_collision(light_move, light_collision); | |
35 } | |
36 | |
37 Light::~Light(void) | |
38 { | |
39 | |
40 } | |
41 |