summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-03-27 15:46:12 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-03-27 15:46:12 +0000
commitd25df3515477d28b7f61d07b2f6a1e17668bcba5 (patch)
treee6b9e803b7cec9097e0a9942612b580c8e1471cd /progs
parent56edca9f62e64189381065375a0c5efb0149a493 (diff)
added missing glEnd() call (Tim Beckmann)
Diffstat (limited to 'progs')
-rw-r--r--progs/demos/tessdemo.c55
1 files changed, 3 insertions, 52 deletions
diff --git a/progs/demos/tessdemo.c b/progs/demos/tessdemo.c
index a62f25b272..b5a6d08c57 100644
--- a/progs/demos/tessdemo.c
+++ b/progs/demos/tessdemo.c
@@ -1,61 +1,10 @@
-/* $Id: tessdemo.c,v 1.5 2000/01/24 22:54:05 gareth Exp $ */
+/* $Id: tessdemo.c,v 1.6 2000/03/27 15:46:12 brianp Exp $ */
/*
* A demo of the GLU polygon tesselation functions written by Bogdan Sikorski.
- * This demo isn't built by the Makefile because it needs GLUT. After you've
- * installed GLUT you can try this demo.
- * Here's the command for IRIX, for example:
- cc -g -ansi -prototypes -fullwarn -float -I../include -DSHM tess_demo.c -L../lib -lglut -lMesaGLU -lMesaGL -lm -lX11 -lXext -lXmu -lfpe -lXext -o tess_demo
- */
-
-/*
* Updated for GLU 1.3 tessellation by Gareth Hughes <garethh@bell-labs.com>
*/
-/*
- * $Log: tessdemo.c,v $
- * Revision 1.5 2000/01/24 22:54:05 gareth
- * Removed '#if 0' from second pass.
- *
- * Revision 1.4 2000/01/23 21:25:39 gareth
- * Merged 3.2 updates, namely combine callback for intersecting
- * contours.
- *
- * Revision 1.3.2.1 1999/11/16 11:09:09 gareth
- * Added combine callback. Converted vertices from ints to floats.
- *
- * Revision 1.3 1999/11/04 04:00:42 gareth
- * Updated demo for new GLU 1.3 tessellation. Added optimized rendering
- * by saving the output of the tessellation into display lists.
- *
- * Revision 1.2 1999/09/19 20:09:00 tanner
- *
- * lots of autoconf updates
- *
- * Revision 1.1.1.1 1999/08/19 00:55:40 jtg
- * Imported sources
- *
- * Revision 3.5 1999/03/28 18:24:37 brianp
- * minor clean-up
- *
- * Revision 3.4 1999/02/14 03:37:07 brianp
- * fixed callback problem
- *
- * Revision 3.3 1998/07/26 01:25:26 brianp
- * removed include of gl.h and glu.h
- *
- * Revision 3.2 1998/06/29 02:37:30 brianp
- * minor changes for Windows (Ted Jump)
- *
- * Revision 3.1 1998/06/09 01:53:49 brianp
- * main() should return an int
- *
- * Revision 3.0 1998/02/14 18:42:29 brianp
- * initial rev
- *
- */
-
-
#include <GL/glut.h>
#include <stdio.h>
#include <stdlib.h>
@@ -398,6 +347,8 @@ void display( void )
}
}
+ glEnd();
+
glColor3f( 1.0, 1.0, 0.0 );
for ( i = 0 ; i <= contour_cnt ; i++ )