/*
* glcurveval.c++
*
- * $Date: 2001/08/07 17:34:10 $ $Revision: 1.3 $
- * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/interface/glcurveval.cc,v 1.3 2001/08/07 17:34:10 brianp Exp $
+ * $Date: 2002/11/01 23:45:30 $ $Revision: 1.4 $
+ * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/interface/glcurveval.cc,v 1.4 2002/11/01 23:45:30 brianp Exp $
*/
/* Polynomial Evaluator Interface */
{
if(output_triangles)
{
- global_grid_u0 = u0;
- global_grid_u1 = u1;
- global_grid_nu = nu;
+ global_grid_u0 = (int) u0;
+ global_grid_u1 = (int) u1;
+ global_grid_nu = (int) nu;
}
else
glMapGrid1f((GLint) nu, (GLfloat) u0, (GLfloat) u1);
/*
** Author: Eric Veach, July 1994.
**
-** $Date: 2001/03/17 00:25:41 $ $Revision: 1.1 $
-** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libtess/normal.c,v 1.1 2001/03/17 00:25:41 brianp Exp $
+** $Date: 2002/11/01 23:45:31 $ $Revision: 1.2 $
+** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libtess/normal.c,v 1.2 2002/11/01 23:45:31 brianp Exp $
*/
#include "gluos.h"
#define Dot(u,v) (u[0]*v[0] + u[1]*v[1] + u[2]*v[2])
+#if 0
static void Normalize( GLdouble v[3] )
{
GLdouble len = v[0]*v[0] + v[1]*v[1] + v[2]*v[2];
v[1] /= len;
v[2] /= len;
}
+#endif
#define ABS(x) ((x) < 0 ? -(x) : (x))
void __gl_projectPolygon( GLUtesselator *tess )
{
GLUvertex *v, *vHead = &tess->mesh->vHead;
- GLdouble w, norm[3];
+ GLdouble norm[3];
GLdouble *sUnit, *tUnit;
int i, computedNormal = FALSE;
/*
** Author: Eric Veach, July 1994.
**
-** $Date: 2001/09/20 21:47:52 $ $Revision: 1.2 $
-** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libtess/sweep.c,v 1.2 2001/09/20 21:47:52 kschultz Exp $
+** $Date: 2002/11/01 23:45:31 $ $Revision: 1.3 $
+** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libtess/sweep.c,v 1.3 2002/11/01 23:45:31 brianp Exp $
*/
#include "gluos.h"
static void DoneEdgeDict( GLUtesselator *tess )
{
ActiveRegion *reg;
- int fixedEdges = 0;
/* __GL_DICTLISTKEY */ /* __GL_DICTLISTMIN */
while( (reg = (ActiveRegion *)dictKey( dictMin( tess->dict ))) != NULL ) {
/*
** Author: Eric Veach, July 1994.
**
-** $Date: 2001/09/20 21:47:52 $ $Revision: 1.2 $
-** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libtess/tess.c,v 1.2 2001/09/20 21:47:52 kschultz Exp $
+** $Date: 2002/11/01 23:45:31 $ $Revision: 1.3 $
+** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libtess/tess.c,v 1.3 2002/11/01 23:45:31 brianp Exp $
*/
#include "gluos.h"
CALL_ERROR_OR_ERROR_DATA( GLU_TESS_MISSING_BEGIN_CONTOUR );
gluTessBeginContour( tess );
break;
+ default:
+ ;
}
} else {
switch( tess->state ) {
/* gluTessEndPolygon( tess ) is too much work! */
MakeDormant( tess );
break;
+ default:
+ ;
}
}
}
** published by SGI, but has not been independently verified as being
** compliant with the OpenGL(R) version 1.2.1 Specification.
**
-** $Date: 2001/08/07 17:34:11 $ $Revision: 1.2 $
-** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libutil/mipmap.c,v 1.2 2001/08/07 17:34:11 brianp Exp $
+** $Date: 2002/11/01 23:45:31 $ $Revision: 1.3 $
+** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libutil/mipmap.c,v 1.3 2002/11/01 23:45:31 brianp Exp $
*/
#include "gluos.h"
GLint element_size, GLint ysize, GLint group_size,
GLint myswap_bytes)
{
- int i, j, k, l;
+ int i, j, k;
int newwidth, newheight;
GLushort *s;
const char *t;
GLint element_size, GLint ysize, GLint group_size,
GLint myswap_bytes)
{
- int i, j, k, l;
+ int i, j, k;
int newwidth, newheight;
GLshort *s;
const char *t;
GLint element_size, GLint ysize, GLint group_size,
GLint myswap_bytes)
{
- int i, j, k, l;
+ int i, j, k;
int newwidth, newheight;
GLuint *s;
const char *t;
const GLint *datain, GLint *dataout, GLint element_size,
GLint ysize, GLint group_size, GLint myswap_bytes)
{
- int i, j, k, l;
+ int i, j, k;
int newwidth, newheight;
GLint *s;
const char *t;
GLint element_size, GLint ysize, GLint group_size,
GLint myswap_bytes)
{
- int i, j, k, l;
+ int i, j, k;
int newwidth, newheight;
GLfloat *s;
const char *t;
GLubyte *dataout, GLint element_size,
GLint ysize, GLint group_size)
{
- float x, convx;
- float y, convy;
+ float convx;
+ float convy;
float percent;
/* Max components in a format is 4, so... */
float totals[4];
GLbyte *dataout, GLint element_size,
GLint ysize, GLint group_size)
{
- float x, convx;
- float y, convy;
+ float convx;
+ float convy;
float percent;
/* Max components in a format is 4, so... */
float totals[4];
GLint ysize, GLint group_size,
GLint myswap_bytes)
{
- float x, convx;
- float y, convy;
+ float convx;
+ float convy;
float percent;
/* Max components in a format is 4, so... */
float totals[4];
GLint ysize, GLint group_size,
GLint myswap_bytes)
{
- float x, convx;
- float y, convy;
+ float convx;
+ float convy;
float percent;
/* Max components in a format is 4, so... */
float totals[4];
GLint ysize, GLint group_size,
GLint myswap_bytes)
{
- float x, convx;
- float y, convy;
+ float convx;
+ float convy;
float percent;
/* Max components in a format is 4, so... */
float totals[4];
GLint ysize, GLint group_size,
GLint myswap_bytes)
{
- float x, convx;
- float y, convy;
+ float convx;
+ float convy;
float percent;
/* Max components in a format is 4, so... */
float totals[4];
GLint ysize, GLint group_size,
GLint myswap_bytes)
{
- float x, convx;
- float y, convy;
+ float convx;
+ float convy;
float percent;
/* Max components in a format is 4, so... */
float totals[4];
GLushort *otherImage;
GLushort *imageTemp;
GLint memreq;
- GLint maxsize;
GLint cmpts;
PixelStorageModes psm;
GLushort *otherImage;
GLushort *imageTemp;
GLint memreq;
- GLint maxsize;
GLint cmpts;
PixelStorageModes psm;
GLint level, levels;
const void *usersImage; /* passed from user. Don't touch! */
void *srcImage, *dstImage; /* scratch area to build mipmapped images */
- GLint newImage_width;
- GLint newImage_height;
__GLU_INIT_SWAP_IMAGE;
GLint memreq;
- GLint maxsize;
GLint cmpts;
GLint myswap_bytes, groups_per_line, element_size, group_size;
GLubyte *otherImage;
GLubyte *imageTemp;
GLint memreq;
- GLint maxsize;
GLint cmpts;
GLint pixelSizeInBytes,
GLint rowSizeInBytes,GLint isSwap)
{
- float x, convx;
- float y, convy;
+ float convx;
+ float convy;
float percent;
/* Max components in a format is 4, so... */
int i,j,k,xindex;
const char *temp, *temp0;
- const char *temp_index;
int outindex;
int lowx_int, highx_int, lowy_int, highy_int;
psm->unpack_skip_images * imageSize] );
} /* emptyImage3D() */
+static
int gluScaleImage3D(GLenum format,
GLint widthIn, GLint heightIn, GLint depthIn,
GLenum typeIn, const void *dataIn,
return 0;
} /* gluScaleImage3D() */
+
static void closestFit3D(GLenum target, GLint width, GLint height, GLint depth,
GLint internalFormat, GLenum format, GLenum type,
GLint *newWidth, GLint *newHeight, GLint *newDepth)
int halfHeight= height / 2;
int halfDepth= depth / 2;
const char *src= (const char *)dataIn;
- int padBytes= rowSizeInBytes - (width * pixelSizeInBytes);
int outIndex= 0;
assert((width == 1 || height == 1) && depth >= 2);
GLint level, levels;
const void *usersImage;
void *srcImage, *dstImage;
- GLint newImageWidth, newImageHeight, newImageDepth;
__GLU_INIT_SWAP_IMAGE;
GLint memReq;
- GLint maxSize;
GLint cmpts;
GLint myswapBytes, groupsPerLine, elementSize, groupSize;
** published by SGI, but has not been independently verified as being
** compliant with the OpenGL(R) version 1.2.1 Specification.
**
-** $Date: 2001/09/18 16:39:38 $ $Revision: 1.4 $
-** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libutil/project.c,v 1.4 2001/09/18 16:39:38 kschultz Exp $
+** $Date: 2002/11/01 23:45:31 $ $Revision: 1.5 $
+** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libutil/project.c,v 1.5 2002/11/01 23:45:31 brianp Exp $
*/
#include "gluos.h"
GLdouble centery, GLdouble centerz, GLdouble upx, GLdouble upy,
GLdouble upz)
{
- int i;
float forward[3], side[3], up[3];
GLfloat m[4][4];
** published by SGI, but has not been independently verified as being
** compliant with the OpenGL(R) version 1.2.1 Specification.
**
-** $Date: 2001/09/20 21:47:52 $ $Revision: 1.2 $
-** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libutil/quad.c,v 1.2 2001/09/20 21:47:52 kschultz Exp $
+** $Date: 2002/11/01 23:45:31 $ $Revision: 1.3 $
+** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libutil/quad.c,v 1.3 2002/11/01 23:45:31 brianp Exp $
*/
#include "gluos.h"
gluCylinder(GLUquadric *qobj, GLdouble baseRadius, GLdouble topRadius,
GLdouble height, GLint slices, GLint stacks)
{
- GLint i,j,max;
+ GLint i,j;
GLfloat sinCache[CACHE_SIZE];
GLfloat cosCache[CACHE_SIZE];
GLfloat sinCache2[CACHE_SIZE];
GLfloat sinCache3[CACHE_SIZE];
GLfloat cosCache3[CACHE_SIZE];
GLfloat angle;
- GLfloat x, y, zLow, zHigh;
+ GLfloat zLow, zHigh;
GLfloat sintemp, costemp;
GLfloat length;
GLfloat deltaRadius;
GLdouble outerRadius, GLint slices, GLint loops,
GLdouble startAngle, GLdouble sweepAngle)
{
- GLint i,j,max;
+ GLint i,j;
GLfloat sinCache[CACHE_SIZE];
GLfloat cosCache[CACHE_SIZE];
GLfloat angle;
- GLfloat x, y;
GLfloat sintemp, costemp;
GLfloat deltaRadius;
GLfloat radiusLow, radiusHigh;
void GLAPIENTRY
gluSphere(GLUquadric *qobj, GLdouble radius, GLint slices, GLint stacks)
{
- GLint i,j,max;
+ GLint i,j;
GLfloat sinCache1a[CACHE_SIZE];
GLfloat cosCache1a[CACHE_SIZE];
GLfloat sinCache2a[CACHE_SIZE];
GLfloat sinCache3b[CACHE_SIZE];
GLfloat cosCache3b[CACHE_SIZE];
GLfloat angle;
- GLfloat x, y, zLow, zHigh;
+ GLfloat zLow, zHigh;
GLfloat sintemp1, sintemp2, sintemp3, sintemp4;
GLfloat costemp1, costemp2, costemp3, costemp4;
- GLfloat zNormal;
- GLfloat xyNormalRatio;
GLboolean needCache2, needCache3;
GLint start, finish;