glviewvol
diff src/main.cc @ 1:cc9e0d8590e2
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 27 Dec 2014 06:32:28 +0200 |
parents | 7bdf40403b9c |
children | 32c4a7160350 |
line diff
1.1 --- a/src/main.cc Sat Dec 27 02:35:58 2014 +0200 1.2 +++ b/src/main.cc Sat Dec 27 06:32:28 2014 +0200 1.3 @@ -19,8 +19,6 @@ 1.4 static void mouse(int bn, int state, int x, int y); 1.5 static void motion(int x, int y); 1.6 1.7 -static float cam_theta, cam_phi, cam_dist = 6; 1.8 - 1.9 int main(int argc, char **argv) 1.10 { 1.11 glutInit(&argc, argv); 1.12 @@ -30,7 +28,8 @@ 1.13 1.14 glutDisplayFunc(display); 1.15 glutReshapeFunc(reshape); 1.16 - glutKeyboardFunc(keyb); 1.17 + glutKeyboardFunc(key_down); 1.18 + glutKeyboardUpFunc(key_up); 1.19 glutMouseFunc(mouse); 1.20 glutMotionFunc(motion); 1.21