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/exp004geometry.c b/src/view/exp004geometry.c
new file mode 100644
index 0000000..9ff6475
--- a/dev/null
+++ b/src/view/exp004geometry.c
@@ -0,0 +1,32 @@
1/* I seem to need this for glGenBuffers as per
2 http://www.gamedev.net/community/forums/topic.asp?topic_id=422358 */
3#define GL_GLEXT_PROTOTYPES
4
5#include "exp004geometry.h"
6#include "exp004state0.h"
7#include <GL/glut.h>
8
9void
10exp004geometry (GLenum mode)
11{
12 glMatrixMode (GL_MODELVIEW);
13 glLoadIdentity ();
14
15 glPointSize (0.1);
16 glColor3f (0.2, 0.2, 0.2);
17
18 if (mode == GL_SELECT)
19 {
20 for (int i = 0; i < ROWS; i++)
21 {
22 glLoadName (i);
23 glDrawArrays (GL_POINTS, i, 1);
24 }
25 }
26 else
27 {
28 glDrawArrays (GL_POINTS, 0, ROWS);
29 }
30
31 return;
32}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.