diff options
author | David Nusinow <[email protected]> | 2005-12-14 01:43:13 +0000 |
---|---|---|
committer | David Nusinow <[email protected]> | 2005-12-14 01:43:13 +0000 |
commit | 92ef7527d17bcd8b59438a8f5e0fbb3e62579710 (patch) | |
tree | 0357d4d4809fb31dad31054099cb56358a382c7b /src/glu/sgi/libnurbs/internals | |
parent | c37d6b4ca8a9a7ac42a2e0082cf1bb0acbbff3cc (diff) |
* New upstream version (6.4.1)
* Merge changes from Ubuntu version 6.4.1-0ubuntu1
+ Add new files required by xorg-server GL build to mesa-swrast-source.
Diffstat (limited to 'src/glu/sgi/libnurbs/internals')
-rw-r--r-- | src/glu/sgi/libnurbs/internals/dataTransform.cc | 9 | ||||
-rw-r--r-- | src/glu/sgi/libnurbs/internals/intersect.cc | 8 | ||||
-rw-r--r-- | src/glu/sgi/libnurbs/internals/maplist.cc | 6 | ||||
-rw-r--r-- | src/glu/sgi/libnurbs/internals/monoTriangulationBackend.cc | 6 | ||||
-rw-r--r-- | src/glu/sgi/libnurbs/internals/slicer.cc | 19 | ||||
-rw-r--r-- | src/glu/sgi/libnurbs/internals/trimline.cc | 9 |
6 files changed, 41 insertions, 16 deletions
diff --git a/src/glu/sgi/libnurbs/internals/dataTransform.cc b/src/glu/sgi/libnurbs/internals/dataTransform.cc index 58a6c273342..1aabd363ea9 100644 --- a/src/glu/sgi/libnurbs/internals/dataTransform.cc +++ b/src/glu/sgi/libnurbs/internals/dataTransform.cc @@ -31,10 +31,10 @@ ** published by SGI, but has not been independently verified as being ** compliant with the OpenGL(R) version 1.2.1 Specification. ** -** $Date: 2001/03/17 00:25:40 $ $Revision: 1.1 $ +** $Date: 2005/10/28 13:09:08 $ $Revision: 1.1.30.1 $ */ /* -** $Header: /cvs/mesa/Mesa/src/glu/sgi/libnurbs/internals/dataTransform.cc,v 1.1 2001/03/17 00:25:40 brianp Exp $ +** $Header: /cvs/mesa/Mesa/src/glu/sgi/libnurbs/internals/dataTransform.cc,v 1.1.30.1 2005/10/28 13:09:08 brianp Exp $ */ #include <stdlib.h> @@ -47,6 +47,7 @@ extern directedLine* arcLoopToDLineLoop(Arc_ptr loop); +#if 0 // UNUSED static directedLine* copy_loop(Arc_ptr loop, Real2* vertArray, int& index, directedLine dline_buf[], sampledLine sline_buf[], int& index_dline) { directedLine *ret; @@ -95,7 +96,9 @@ static directedLine* copy_loop(Arc_ptr loop, Real2* vertArray, int& index, direc } return ret; } +#endif +#if 0 // UNUSED static int num_edges(Bin& bin) { int sum=0; @@ -103,6 +106,8 @@ static int num_edges(Bin& bin) sum += jarc->pwlArc->npts-1; return sum; } +#endif + /* directedLine* bin_to_DLineLoops(Bin& bin) { diff --git a/src/glu/sgi/libnurbs/internals/intersect.cc b/src/glu/sgi/libnurbs/internals/intersect.cc index aced4a447c9..b1e60fbce95 100644 --- a/src/glu/sgi/libnurbs/internals/intersect.cc +++ b/src/glu/sgi/libnurbs/internals/intersect.cc @@ -35,8 +35,8 @@ /* * intersect.c++ * - * $Date: 2004/05/12 15:29:36 $ $Revision: 1.2 $ - * $Header: /cvs/mesa/Mesa/src/glu/sgi/libnurbs/internals/intersect.cc,v 1.2 2004/05/12 15:29:36 brianp Exp $ + * $Date: 2005/10/28 13:09:08 $ $Revision: 1.2.8.1 $ + * $Header: /cvs/mesa/Mesa/src/glu/sgi/libnurbs/internals/intersect.cc,v 1.2.8.1 2005/10/28 13:09:08 brianp Exp $ */ #include "glimports.h" @@ -53,7 +53,9 @@ enum i_result { INTERSECT_VERTEX, INTERSECT_EDGE }; /* local functions */ +#ifndef NDEBUG // for asserts only static int arc_classify( Arc_ptr, int, REAL ); +#endif static enum i_result pwlarc_intersect( PwlArc *, int, REAL, int, int[3] ); @@ -400,6 +402,7 @@ pwlarc_intersect( *---------------------------------------------------------------------------- */ +#ifndef NDEBUG // for asserts only static int arc_classify( Arc_ptr jarc, int param, REAL value ) { @@ -438,6 +441,7 @@ arc_classify( Arc_ptr jarc, int param, REAL value ) } } } +#endif void Subdivider::classify_tailonleft_s( Bin& bin, Bin& in, Bin& out, REAL val ) diff --git a/src/glu/sgi/libnurbs/internals/maplist.cc b/src/glu/sgi/libnurbs/internals/maplist.cc index 82609edbf1d..803044ffd3f 100644 --- a/src/glu/sgi/libnurbs/internals/maplist.cc +++ b/src/glu/sgi/libnurbs/internals/maplist.cc @@ -35,8 +35,8 @@ /* * maplist.c++ * - * $Date: 2001/03/17 00:25:41 $ $Revision: 1.1 $ - * $Header: /cvs/mesa/Mesa/src/glu/sgi/libnurbs/internals/maplist.cc,v 1.1 2001/03/17 00:25:41 brianp Exp $ + * $Date: 2005/10/28 13:09:08 $ $Revision: 1.1.30.1 $ + * $Header: /cvs/mesa/Mesa/src/glu/sgi/libnurbs/internals/maplist.cc,v 1.1.30.1 2005/10/28 13:09:08 brianp Exp $ */ #include "glimports.h" @@ -73,8 +73,10 @@ Maplist::add( long type, int israt, int ncoords ) void Maplist::define( long type, int israt, int ncoords ) { +#ifndef NDEBUG // to avoid warning Mapdesc *m = locate( type ); assert( m == NULL || ( m->isrational == israt && m->ncoords == ncoords ) ); +#endif add( type, israt, ncoords ); } diff --git a/src/glu/sgi/libnurbs/internals/monoTriangulationBackend.cc b/src/glu/sgi/libnurbs/internals/monoTriangulationBackend.cc index df4bda09b56..19e87b99db3 100644 --- a/src/glu/sgi/libnurbs/internals/monoTriangulationBackend.cc +++ b/src/glu/sgi/libnurbs/internals/monoTriangulationBackend.cc @@ -31,10 +31,10 @@ ** published by SGI, but has not been independently verified as being ** compliant with the OpenGL(R) version 1.2.1 Specification. ** -** $Date: 2004/05/12 15:29:36 $ $Revision: 1.2 $ +** $Date: 2005/10/28 13:09:08 $ $Revision: 1.2.8.1 $ */ /* -** $Header: /cvs/mesa/Mesa/src/glu/sgi/libnurbs/internals/monoTriangulationBackend.cc,v 1.2 2004/05/12 15:29:36 brianp Exp $ +** $Header: /cvs/mesa/Mesa/src/glu/sgi/libnurbs/internals/monoTriangulationBackend.cc,v 1.2.8.1 2005/10/28 13:09:08 brianp Exp $ */ #include "monoTriangulation.h" @@ -86,7 +86,7 @@ void reflexChain::processNewVertex(Real v[2], Backend* backend) { Int i,j,k; Int isReflex; - TrimVertex trimVert; + /*TrimVertex trimVert;*/ /*if there are at most one vertex in the queue, then simply insert */ if(index_queue <=1){ diff --git a/src/glu/sgi/libnurbs/internals/slicer.cc b/src/glu/sgi/libnurbs/internals/slicer.cc index c1b74bbf857..9b72f0a6b28 100644 --- a/src/glu/sgi/libnurbs/internals/slicer.cc +++ b/src/glu/sgi/libnurbs/internals/slicer.cc @@ -35,8 +35,8 @@ /* * slicer.c++ * - * $Date: 2002/11/01 23:35:07 $ $Revision: 1.4 $ - * $Header: /cvs/mesa/Mesa/src/glu/sgi/libnurbs/internals/slicer.cc,v 1.4 2002/11/01 23:35:07 brianp Exp $ + * $Date: 2005/10/28 13:09:08 $ $Revision: 1.4.26.1 $ + * $Header: /cvs/mesa/Mesa/src/glu/sgi/libnurbs/internals/slicer.cc,v 1.4.26.1 2005/10/28 13:09:08 brianp Exp $ */ #include <stdlib.h> @@ -84,6 +84,7 @@ Int num_quads = 0; #define ZERO 0.00001 /*determing whether a loop is a rectngle or not*/ #define equalRect(a,b) ((glu_abs(a-b) <= ZERO)? 1:0) //only used in tessellating a rectangle +#if 0 // UNUSED static Int is_Convex(Arc_ptr loop) { if(area(loop->tail(), loop->head(), loop->next->head()) <0 ) @@ -95,9 +96,11 @@ static Int is_Convex(Arc_ptr loop) } return 1; } +#endif /******triangulate a monotone polygon**************/ #include "monoTriangulation.h" +#if 0 // UNUSED static int is_U_monotone(Arc_ptr loop) { int n_changes=0; @@ -126,6 +129,7 @@ static int is_U_monotone(Arc_ptr loop) else return 0; } +#endif inline int compInY(REAL a[2], REAL b[2]) { @@ -259,6 +263,7 @@ if(loop->next->tail()[1] == loop->next->head()[1]) //a line with the same u for opt +#ifdef USE_OPTTT static void evalLineNOGE_BU(TrimVertex *verts, int n, Backend& backend) { int i; @@ -266,8 +271,10 @@ static void evalLineNOGE_BU(TrimVertex *verts, int n, Backend& backend) for(i=0; i<n; i++) backend.tmeshvertNOGE_BU(&verts[i]); } +#endif //a line with the same v for opt +#ifdef USE_OPTTT static void evalLineNOGE_BV(TrimVertex *verts, int n, Backend& backend) { int i; @@ -276,6 +283,9 @@ static void evalLineNOGE_BV(TrimVertex *verts, int n, Backend& backend) for(i=0; i<n; i++) backend.tmeshvertNOGE_BV(&verts[i]); } +#endif + +#ifdef USE_OPTTT static void evalLineNOGE(TrimVertex *verts, int n, Backend& backend) { @@ -290,7 +300,7 @@ static void evalLineNOGE(TrimVertex *verts, int n, Backend& backend) backend.tmeshvertNOGE(&verts[i]); } } - +#endif inline void OPT_OUTVERT(TrimVertex& vv, Backend& backend) { @@ -861,6 +871,7 @@ return; /**********for reading newtess_flag from a file**********/ +#ifdef USE_READ_FLAG static Int read_flag(char* name) { Int ret; @@ -874,7 +885,7 @@ static Int read_flag(char* name) fclose(fp); return ret; } - +#endif /***********nextgen tess****************/ #include "sampleMonoPoly.h" diff --git a/src/glu/sgi/libnurbs/internals/trimline.cc b/src/glu/sgi/libnurbs/internals/trimline.cc index a8a9adefc8b..72ace36999f 100644 --- a/src/glu/sgi/libnurbs/internals/trimline.cc +++ b/src/glu/sgi/libnurbs/internals/trimline.cc @@ -35,8 +35,8 @@ /* * trimline.c++ * - * $Date: 2001/03/17 00:25:41 $ $Revision: 1.1 $ - * $Header: /cvs/mesa/Mesa/src/glu/sgi/libnurbs/internals/trimline.cc,v 1.1 2001/03/17 00:25:41 brianp Exp $ + * $Date: 2005/10/28 13:09:08 $ $Revision: 1.1.30.1 $ + * $Header: /cvs/mesa/Mesa/src/glu/sgi/libnurbs/internals/trimline.cc,v 1.1.30.1 2005/10/28 13:09:08 brianp Exp $ */ #include "glimports.h" @@ -162,10 +162,11 @@ Trimline::getNextPts( Arc_ptr botarc ) { reset(); swap(); append( tinterp ); +#ifndef NDEBUG PwlArc *lastpwl = botarc->prev->pwlArc; TrimVertex *lastpt1 = &lastpwl->pts[lastpwl->npts-1]; +#endif TrimVertex *lastpt2 = botarc->pwlArc->pts; - register TrimVertex *p = jarcl.getnextpt(); for( append( p ); p != lastpt2; append( p ) ) { assert( p != lastpt1 ); @@ -180,7 +181,9 @@ Trimline::getPrevPts( Arc_ptr botarc ) PwlArc *lastpwl = botarc->prev->pwlArc; TrimVertex *lastpt1 = &lastpwl->pts[lastpwl->npts-1]; +#ifndef NDEBUG TrimVertex *lastpt2 = botarc->pwlArc->pts; +#endif register TrimVertex *q = jarcl.getprevpt(); for( append( q ); q != lastpt1; append( q ) ) { |