-/* $Id: context.c,v 1.161 2002/04/19 00:23:08 brianp Exp $ */
+/* $Id: context.c,v 1.162 2002/05/09 21:54:16 brianp Exp $ */
/*
* Mesa 3-D graphics library
ASSIGN_4V( ctx->Current.RasterColor, 1.0, 1.0, 1.0, 1.0 );
ctx->Current.RasterIndex = 1;
for (i=0; i<MAX_TEXTURE_UNITS; i++)
- ASSIGN_4V( ctx->Current.RasterMultiTexCoord[i], 0.0, 0.0, 0.0, 1.0 );
- ctx->Current.RasterTexCoord = ctx->Current.RasterMultiTexCoord[0];
+ ASSIGN_4V( ctx->Current.RasterTexCoords[i], 0.0, 0.0, 0.0, 1.0 );
ctx->Current.RasterPosValid = GL_TRUE;
-/* $Id: drawpix.c,v 1.59 2002/01/15 21:49:57 brianp Exp $ */
+/* $Id: drawpix.c,v 1.60 2002/05/09 21:54:16 brianp Exp $ */
/*
* Mesa 3-D graphics library
ctx->Current.RasterPos,
ctx->Current.RasterColor,
ctx->Current.RasterIndex,
- ctx->Current.RasterTexCoord );
+ ctx->Current.RasterTexCoords[0] );
}
}
else if (ctx->RenderMode==GL_SELECT) {
ctx->Current.RasterPos,
ctx->Current.RasterColor,
ctx->Current.RasterIndex,
- ctx->Current.RasterTexCoord );
+ ctx->Current.RasterTexCoords[0] );
}
}
else if (ctx->RenderMode == GL_SELECT) {
ctx->Current.RasterPos,
ctx->Current.RasterColor,
ctx->Current.RasterIndex,
- ctx->Current.RasterTexCoord );
+ ctx->Current.RasterTexCoords[0] );
}
}
else if (ctx->RenderMode==GL_SELECT) {
-/* $Id: get.c,v 1.77 2002/04/24 20:05:26 brianp Exp $ */
+/* $Id: get.c,v 1.78 2002/05/09 21:54:16 brianp Exp $ */
/*
* Mesa 3-D graphics library
params[3] = FLOAT_TO_BOOL(ctx->Current.RasterPos[3]);
break;
case GL_CURRENT_RASTER_TEXTURE_COORDS:
- params[0] = FLOAT_TO_BOOL(ctx->Current.RasterMultiTexCoord[texUnit][0]);
- params[1] = FLOAT_TO_BOOL(ctx->Current.RasterMultiTexCoord[texUnit][1]);
- params[2] = FLOAT_TO_BOOL(ctx->Current.RasterMultiTexCoord[texUnit][2]);
- params[3] = FLOAT_TO_BOOL(ctx->Current.RasterMultiTexCoord[texUnit][3]);
+ params[0] = FLOAT_TO_BOOL(ctx->Current.RasterTexCoords[texUnit][0]);
+ params[1] = FLOAT_TO_BOOL(ctx->Current.RasterTexCoords[texUnit][1]);
+ params[2] = FLOAT_TO_BOOL(ctx->Current.RasterTexCoords[texUnit][2]);
+ params[3] = FLOAT_TO_BOOL(ctx->Current.RasterTexCoords[texUnit][3]);
break;
case GL_CURRENT_RASTER_POSITION_VALID:
*params = ctx->Current.RasterPosValid;
params[3] = (GLdouble) ctx->Current.RasterPos[3];
break;
case GL_CURRENT_RASTER_TEXTURE_COORDS:
- params[0] = (GLdouble) ctx->Current.RasterMultiTexCoord[texUnit][0];
- params[1] = (GLdouble) ctx->Current.RasterMultiTexCoord[texUnit][1];
- params[2] = (GLdouble) ctx->Current.RasterMultiTexCoord[texUnit][2];
- params[3] = (GLdouble) ctx->Current.RasterMultiTexCoord[texUnit][3];
+ params[0] = (GLdouble) ctx->Current.RasterTexCoords[texUnit][0];
+ params[1] = (GLdouble) ctx->Current.RasterTexCoords[texUnit][1];
+ params[2] = (GLdouble) ctx->Current.RasterTexCoords[texUnit][2];
+ params[3] = (GLdouble) ctx->Current.RasterTexCoords[texUnit][3];
break;
case GL_CURRENT_RASTER_POSITION_VALID:
*params = (GLdouble) ctx->Current.RasterPosValid;
params[3] = ctx->Current.RasterPos[3];
break;
case GL_CURRENT_RASTER_TEXTURE_COORDS:
- params[0] = ctx->Current.RasterMultiTexCoord[texUnit][0];
- params[1] = ctx->Current.RasterMultiTexCoord[texUnit][1];
- params[2] = ctx->Current.RasterMultiTexCoord[texUnit][2];
- params[3] = ctx->Current.RasterMultiTexCoord[texUnit][3];
+ params[0] = ctx->Current.RasterTexCoords[texUnit][0];
+ params[1] = ctx->Current.RasterTexCoords[texUnit][1];
+ params[2] = ctx->Current.RasterTexCoords[texUnit][2];
+ params[3] = ctx->Current.RasterTexCoords[texUnit][3];
break;
case GL_CURRENT_RASTER_POSITION_VALID:
*params = (GLfloat) ctx->Current.RasterPosValid;
params[3] = (GLint) ctx->Current.RasterPos[3];
break;
case GL_CURRENT_RASTER_TEXTURE_COORDS:
- params[0] = (GLint) ctx->Current.RasterMultiTexCoord[texUnit][0];
- params[1] = (GLint) ctx->Current.RasterMultiTexCoord[texUnit][1];
- params[2] = (GLint) ctx->Current.RasterMultiTexCoord[texUnit][2];
- params[3] = (GLint) ctx->Current.RasterMultiTexCoord[texUnit][3];
+ params[0] = (GLint) ctx->Current.RasterTexCoords[texUnit][0];
+ params[1] = (GLint) ctx->Current.RasterTexCoords[texUnit][1];
+ params[2] = (GLint) ctx->Current.RasterTexCoords[texUnit][2];
+ params[3] = (GLint) ctx->Current.RasterTexCoords[texUnit][3];
break;
case GL_CURRENT_RASTER_POSITION_VALID:
*params = (GLint) ctx->Current.RasterPosValid;
-/* $Id: mtypes.h,v 1.74 2002/05/02 00:59:20 brianp Exp $ */
+/* $Id: mtypes.h,v 1.75 2002/05/09 21:54:16 brianp Exp $ */
/*
* Mesa 3-D graphics library
GLfloat RasterColor[4]; /* Current raster color */
GLfloat RasterSecondaryColor[4]; /* Current rast 2ndary color */
GLuint RasterIndex; /* Current raster index */
- GLfloat *RasterTexCoord; /* Current raster texcoord */
- GLfloat RasterMultiTexCoord[MAX_TEXTURE_UNITS][4];
+ GLfloat RasterTexCoords[MAX_TEXTURE_UNITS][4];/* Current raster texcoords */
GLboolean RasterPosValid; /* Raster pos valid flag */
};
-/* $Id: rastpos.c,v 1.36 2002/03/29 17:27:59 brianp Exp $ */
+/* $Id: rastpos.c,v 1.37 2002/05/09 21:54:16 brianp Exp $ */
/*
* Mesa 3-D graphics library
{
GLuint texSet;
for (texSet = 0; texSet < ctx->Const.MaxTextureUnits; texSet++) {
- COPY_4FV( ctx->Current.RasterMultiTexCoord[texSet],
+ COPY_4FV( ctx->Current.RasterTexCoords[texSet],
ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texSet] );
}
}
{
GLuint texSet;
for (texSet = 0; texSet < ctx->Const.MaxTextureUnits; texSet++) {
- COPY_4FV( ctx->Current.RasterMultiTexCoord[texSet],
+ COPY_4FV( ctx->Current.RasterTexCoords[texSet],
ctx->Current.Attrib[VERT_ATTRIB_TEX0 + texSet] );
}
}