branch | pyrit |
changeset 81 | 9dbb9c8c115b |
parent 79 | 062b1c4143f7 |
child 88 | f7edb3b90816 |
80:907929fa9b59 | 81:9dbb9c8c115b |
---|---|
7 Camera cam(Vector3(0.,6.,6.), Vector3(0.,2.,-7.), Vector3(0.,0.,-1.)); |
7 Camera cam(Vector3(0.,6.,6.), Vector3(0.,2.,-7.), Vector3(0.,0.,-1.)); |
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; |