-/* $Id: isosurf.c,v 1.2 1999/09/03 14:56:40 keithw Exp $ */
+/* $Id: isosurf.c,v 1.3 1999/09/08 22:14:31 brianp Exp $ */
/*
* Display an isosurface of 3-D wind speed volume.
/*
* $Log: isosurf.c,v $
+ * Revision 1.3 1999/09/08 22:14:31 brianp
+ * minor changes. always call compactify_arrays()
+ *
* Revision 1.2 1999/09/03 14:56:40 keithw
* Fog, displaylist and zoom operations
*
static GLdouble plane[4] = {1.0, 0.0, -1.0, 0.0};
static GLuint surf1;
+/* forward decl */
+int BuildList( int mode );
+
+
static void read_surface( char *filename )
{
FILE *f;
}
-static void compactify_arrays()
+static void compactify_arrays(void)
{
int i;
struct data_idx *ind;
glHint(GL_FOG_HINT,GL_DONT_CARE);
- if (allowed & COMPILED) {
- compactify_arrays();
- make_tri_indices();
- }
+ compactify_arrays();
+ make_tri_indices();
surf1 = BuildList( GL_COMPILE );
static void Key( unsigned char key, int x, int y )
{
+ (void) x;
+ (void) y;
switch (key) {
case 27:
exit(0);
static void SpecialKey( int key, int x, int y )
{
+ (void) x;
+ (void) y;
switch (key) {
case GLUT_KEY_LEFT:
yrot -= 15.0;