aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-09-13 21:02:32 +0000
committerBrian Paul <[email protected]>2006-09-13 21:02:32 +0000
commitfd2e402359e39d2afb9dcce9c64fe09906c4a877 (patch)
tree9c4035f829894cd4a746ec272b8381680aa5818a /src/mesa/main/get.c
parentbd5331f9e86bdb112624ac30bf6b843675a5830c (diff)
added GL_CURRENT_RASTER_SECONDARY_COLOR query (OpenGL 2.1)
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r--src/mesa/main/get.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 3da2e689888..086785911ee 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -259,6 +259,12 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params )
params[2] = FLOAT_TO_BOOLEAN(ctx->Current.RasterPos[2]);
params[3] = FLOAT_TO_BOOLEAN(ctx->Current.RasterPos[3]);
break;
+ case GL_CURRENT_RASTER_SECONDARY_COLOR:
+ params[0] = FLOAT_TO_BOOLEAN(ctx->Current.RasterSecondaryColor[0]);
+ params[1] = FLOAT_TO_BOOLEAN(ctx->Current.RasterSecondaryColor[1]);
+ params[2] = FLOAT_TO_BOOLEAN(ctx->Current.RasterSecondaryColor[2]);
+ params[3] = FLOAT_TO_BOOLEAN(ctx->Current.RasterSecondaryColor[3]);
+ break;
case GL_CURRENT_RASTER_TEXTURE_COORDS:
{
const GLuint texUnit = ctx->Texture.CurrentUnit;
@@ -2077,6 +2083,12 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params )
params[2] = ctx->Current.RasterPos[2];
params[3] = ctx->Current.RasterPos[3];
break;
+ case GL_CURRENT_RASTER_SECONDARY_COLOR:
+ params[0] = ctx->Current.RasterSecondaryColor[0];
+ params[1] = ctx->Current.RasterSecondaryColor[1];
+ params[2] = ctx->Current.RasterSecondaryColor[2];
+ params[3] = ctx->Current.RasterSecondaryColor[3];
+ break;
case GL_CURRENT_RASTER_TEXTURE_COORDS:
{
const GLuint texUnit = ctx->Texture.CurrentUnit;
@@ -3895,6 +3907,12 @@ _mesa_GetIntegerv( GLenum pname, GLint *params )
params[2] = IROUND(ctx->Current.RasterPos[2]);
params[3] = IROUND(ctx->Current.RasterPos[3]);
break;
+ case GL_CURRENT_RASTER_SECONDARY_COLOR:
+ params[0] = FLOAT_TO_INT(ctx->Current.RasterSecondaryColor[0]);
+ params[1] = FLOAT_TO_INT(ctx->Current.RasterSecondaryColor[1]);
+ params[2] = FLOAT_TO_INT(ctx->Current.RasterSecondaryColor[2]);
+ params[3] = FLOAT_TO_INT(ctx->Current.RasterSecondaryColor[3]);
+ break;
case GL_CURRENT_RASTER_TEXTURE_COORDS:
{
const GLuint texUnit = ctx->Texture.CurrentUnit;