summaryrefslogtreecommitdiffstats
authorDon Pellegrino <don@drexel.edu>2009-06-18 21:14:34 (GMT)
committer Don Pellegrino <don@drexel.edu>2009-06-18 21:14:34 (GMT)
commit76ad23bc0d04c3d854e1d558545c44576fdce348 (patch) (side-by-side diff)
tree1614d57646178023585332072db1f901cf0e705c
parenta2c45b292240e0fdc867f6796ac67683542aeee1 (diff)
downloadexp005-76ad23bc0d04c3d854e1d558545c44576fdce348.zip
exp005-76ad23bc0d04c3d854e1d558545c44576fdce348.tar.gz
exp005-76ad23bc0d04c3d854e1d558545c44576fdce348.tar.bz2
Implemented zooming.
-rw-r--r--src/controller/exp004reshape.c13
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 @@
#include "exp004reshape.h"
+#include "set_ortho.h"
#include "../view/exp004state0.h"
#include <GL/glut.h>
-#include <stdio.h>
#define S exp004state0
@@ -41,16 +41,7 @@ exp004reshape (int w, int h)
S.ortho_max;
}
- gluOrtho2D(S.ortho.min_x,
- S.ortho.max_x,
- S.ortho.min_y,
- S.ortho.max_y);
-
- printf ("Ortho: %f %f %f %f\n",
- S.ortho.min_x,
- S.ortho.max_x,
- S.ortho.min_y,
- S.ortho.max_y);
+ set_ortho ();
glMatrixMode (GL_MODELVIEW);

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.