From 18acf6e6f18705ed7f09250b246312c0218476f5 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 19 Apr 2001 13:12:40 +0000 Subject: [PATCH] Add more options, including '-10','-100' and '-1000' to limit nr of vertices. --- progs/demos/isosurf.c | 61 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 50 insertions(+), 11 deletions(-) diff --git a/progs/demos/isosurf.c b/progs/demos/isosurf.c index 9c78a474904..a9d5128c54a 100644 --- a/progs/demos/isosurf.c +++ b/progs/demos/isosurf.c @@ -1,4 +1,4 @@ -/* $Id: isosurf.c,v 1.8 2001/01/06 20:38:03 gareth Exp $ */ +/* $Id: isosurf.c,v 1.9 2001/04/19 13:12:40 keithw Exp $ */ /* * Display an isosurface of 3-D wind speed volume. @@ -80,6 +80,7 @@ #define STIPPLE_MASK (STIPPLE|NO_STIPPLE) #define MAXVERTS 10000 +static GLuint maxverts = MAXVERTS; static float data[MAXVERTS][6]; static float compressed_data[MAXVERTS][6]; static GLuint indices[MAXVERTS]; @@ -93,7 +94,7 @@ static GLfloat dist = -6; static GLint state, allowed = ~0; static GLboolean doubleBuffer = GL_TRUE; static GLdouble plane[4] = {1.0, 0.0, -1.0, 0.0}; -static GLuint surf1; +static GLuint surf1, surf2, surf3; static GLboolean PrintInfo = GL_FALSE; @@ -112,7 +113,9 @@ static GLubyte halftone[] = { 0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55}; /* forward decl */ -int BuildList( int mode ); +int BuildVertexList( int mode ); +int BuildArrayEltList( int mode ); +int BuildDrawArraysList( int mode ); static void read_surface( char *filename ) @@ -126,7 +129,7 @@ static void read_surface( char *filename ) } numverts = 0; - while (!feof(f) && numverts