author | Don Pellegrino <don@drexel.edu> | 2009-06-18 21:14:34 (GMT) |
---|---|---|
committer | Don Pellegrino <don@drexel.edu> | 2009-06-18 21:14:34 (GMT) |
commit | 76ad23bc0d04c3d854e1d558545c44576fdce348 (patch) (unidiff) | |
tree | 1614d57646178023585332072db1f901cf0e705c | |
parent | a2c45b292240e0fdc867f6796ac67683542aeee1 (diff) | |
download | exp005-76ad23bc0d04c3d854e1d558545c44576fdce348.zip exp005-76ad23bc0d04c3d854e1d558545c44576fdce348.tar.gz exp005-76ad23bc0d04c3d854e1d558545c44576fdce348.tar.bz2 |
Implemented zooming.
-rw-r--r-- | src/controller/exp004reshape.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/controller/exp004reshape.c b/src/controller/exp004reshape.c index f3d7098..4d46223 100644 --- a/src/controller/exp004reshape.c +++ b/src/controller/exp004reshape.c | |||
@@ -1,7 +1,7 @@ | |||
1 | #include "exp004reshape.h" | 1 | #include "exp004reshape.h" |
2 | #include "set_ortho.h" | ||
2 | #include "../view/exp004state0.h" | 3 | #include "../view/exp004state0.h" |
3 | #include <GL/glut.h> | 4 | #include <GL/glut.h> |
4 | #include <stdio.h> | ||
5 | 5 | ||
6 | #define S exp004state0 | 6 | #define S exp004state0 |
7 | 7 | ||
@@ -41,16 +41,7 @@ exp004reshape (int w, int h) | |||
41 | S.ortho_max; | 41 | S.ortho_max; |
42 | } | 42 | } |
43 | 43 | ||
44 | gluOrtho2D(S.ortho.min_x, | 44 | set_ortho (); |
45 | S.ortho.max_x, | ||
46 | S.ortho.min_y, | ||
47 | S.ortho.max_y); | ||
48 | |||
49 | printf ("Ortho: %f %f %f %f\n", | ||
50 | S.ortho.min_x, | ||
51 | S.ortho.max_x, | ||
52 | S.ortho.min_y, | ||
53 | S.ortho.max_y); | ||
54 | 45 | ||
55 | glMatrixMode (GL_MODELVIEW); | 46 | glMatrixMode (GL_MODELVIEW); |
56 | 47 | ||