mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 10:18:05 +02:00
added GL_CURRENT_RASTER_SECONDARY_COLOR query (OpenGL 2.1)
This commit is contained in:
parent
bd5331f9e8
commit
fd2e402359
2 changed files with 24 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Mesa 3-D graphics library
|
||||
#
|
||||
# Copyright (C) 1999-2005 Brian Paul All Rights Reserved.
|
||||
# Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
|
|
@ -157,6 +157,11 @@ StateVars = [
|
|||
"ctx->Current.RasterPos[1]",
|
||||
"ctx->Current.RasterPos[2]",
|
||||
"ctx->Current.RasterPos[3]"], "", None ),
|
||||
( "GL_CURRENT_RASTER_SECONDARY_COLOR", GLfloatN,
|
||||
["ctx->Current.RasterSecondaryColor[0]",
|
||||
"ctx->Current.RasterSecondaryColor[1]",
|
||||
"ctx->Current.RasterSecondaryColor[2]",
|
||||
"ctx->Current.RasterSecondaryColor[3]"], "", None ),
|
||||
( "GL_CURRENT_RASTER_TEXTURE_COORDS", GLfloat,
|
||||
["ctx->Current.RasterTexCoords[texUnit][0]",
|
||||
"ctx->Current.RasterTexCoords[texUnit][1]",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue