summaryrefslogtreecommitdiffstats
Unidiff
-rw-r--r--AUTHORS1
-rw-r--r--Makefile.am2
-rw-r--r--README24
-rw-r--r--ax/acx_pthread.m4242
-rw-r--r--ax/ax_check_gl.m495
-rw-r--r--ax/ax_check_glu.m471
-rw-r--r--ax/ax_check_glut.m478
-rw-r--r--ax/ax_lang_compiler_ms.m423
-rw-r--r--configure.ac24
-rw-r--r--src/Makefile.am28
-rw-r--r--src/controller/exp004display.c16
-rw-r--r--src/controller/exp004display.h6
-rw-r--r--src/controller/exp004mouse.c90
-rw-r--r--src/controller/exp004mouse.h6
-rw-r--r--src/controller/exp004processhits.c54
-rw-r--r--src/controller/exp004processhits.h8
-rw-r--r--src/controller/exp004reshape.c55
-rw-r--r--src/controller/exp004reshape.h6
-rw-r--r--src/exp004viz.c15
-rw-r--r--src/model/exp004base.c107
-rw-r--r--src/model/exp004base.h9
-rw-r--r--src/model/exp004state.h101
-rw-r--r--src/util/check_error.c17
-rw-r--r--src/util/check_error.h9
-rw-r--r--src/view/exp004geometry.c32
-rw-r--r--src/view/exp004geometry.h8
-rw-r--r--src/view/exp004state0.h8
-rw-r--r--src/view/exp004view.c44
-rw-r--r--src/view/exp004view.h6
29 files changed, 1185 insertions, 0 deletions
diff --git a/src/view/exp004view.c b/src/view/exp004view.c
new file mode 100644
index 0000000..5e3b8ab
--- a/dev/null
+++ b/src/view/exp004view.c
@@ -0,0 +1,44 @@
1#include "../controller/exp004display.h"
2#include "../controller/exp004mouse.h"
3#include "../controller/exp004reshape.h"
4#include "../model/exp004base.h"
5#include "exp004view.h"
6#include <GL/glut.h>
7
8void
9exp004view (void)
10{
11 // GLUT Initialization
12 glutInitWindowSize (500, 500);
13 glutInitWindowPosition (100, 100);
14 glutCreateWindow ("Exp004");
15
16 // GL Initialization
17 glClearColor (0.0, 0.0, 0.0, 1.0);
18 glColor3f (1.0, 1.0, 1.0);
19 glEnable (GL_AUTO_NORMAL);
20 glEnable (GL_DEPTH_TEST);
21 glEnable (GL_MAP1_VERTEX_3);
22 glShadeModel (GL_SMOOTH);
23
24 /* Buffer objects to use. */
25 glEnableClientState (GL_COLOR_ARRAY);
26 glEnableClientState (GL_VERTEX_ARRAY);
27
28 /* Enable Antialiasing as described in "Antialiasing"
29 [Shreiner,247]. */
30 glEnable (GL_LINE_SMOOTH);
31 glEnable (GL_BLEND);
32 glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
33 glHint (GL_LINE_SMOOTH_HINT, GL_NICEST);
34
35 // Initialize the model.
36 exp004base ();
37
38 // Callbacks (Controllers)
39 glutDisplayFunc (exp004display);
40 glutMouseFunc (exp004mouse);
41 glutReshapeFunc (exp004reshape);
42
43 return;
44}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.