summaryrefslogtreecommitdiffstats
authorDon Pellegrino <don@coffee.donpellegrino.com>2009-08-17 17:00:45 (GMT)
committer Don Pellegrino <don@coffee.donpellegrino.com>2009-08-17 17:00:45 (GMT)
commite415bcfa0167c72529af8f80f25e6dfcd6ecfca0 (patch) (unidiff)
tree1f8428af75b752b52349248697b88a9c40239801
parent8af3b6fb74db30540bc877049ca795fc2428f383 (diff)
downloadexp005-e415bcfa0167c72529af8f80f25e6dfcd6ecfca0.zip
exp005-e415bcfa0167c72529af8f80f25e6dfcd6ecfca0.tar.gz
exp005-e415bcfa0167c72529af8f80f25e6dfcd6ecfca0.tar.bz2
Refactored controller package.
-rw-r--r--src/controller/actions/set_ortho.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/controller/actions/set_ortho.c b/src/controller/actions/set_ortho.c
new file mode 100644
index 0000000..83b42f4
--- a/dev/null
+++ b/src/controller/actions/set_ortho.c
@@ -0,0 +1,21 @@
1#include "set_ortho.h"
2#include "../../view/exp004state0.h"
3#include <GL/glut.h>
4
5#define S exp004state0
6
7void
8set_ortho (void)
9{
10 if (S.zoom.active)
11 {
12 gluOrtho2D (S.zoom.coords[0],
13 S.zoom.coords[1], S.zoom.coords[2], S.zoom.coords[3]);
14 }
15 else
16 {
17 gluOrtho2D (S.ortho.min_x, S.ortho.max_x, S.ortho.min_y, S.ortho.max_y);
18 }
19
20 return;
21}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.