branch | pyrit |
changeset 81 | 9dbb9c8c115b |
parent 72 | 7c3f38dff082 |
child 88 | f7edb3b90816 |
80:907929fa9b59 | 81:9dbb9c8c115b |
---|---|
7 Camera cam; |
7 Camera cam; |
8 Light light(Vector3(-2.0, 10.0, -2.0), Colour(0.9, 0.9, 0.9)); |
8 Light light(Vector3(-2.0, 10.0, -2.0), Colour(0.9, 0.9, 0.9)); |
9 |
9 |
10 Float lx, ly, lz, cf; |
10 Float lx, ly, lz, cf; |
11 |
11 |
12 void update_callback() |
12 void update_callback(Float*) |
13 { |
13 { |
14 if (lx != 0.0) |
14 if (lx != 0.0) |
15 light.pos.x += lx; |
15 light.pos.x += lx; |
16 if (ly != 0.0) |
16 if (ly != 0.0) |
17 light.pos.y += ly; |
17 light.pos.y += ly; |