diff options
author | Ian Romanick <[email protected]> | 2003-05-30 21:37:14 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2003-05-30 21:37:14 +0000 |
commit | 882caa18c6c551cbe60f205795b00a6a5361a986 (patch) | |
tree | fd8226be22109e848b87d2d7e9df909b2db16026 /src/mesa/main/get.c | |
parent | b2a4aecd806fc7b492534e329d029e002ff07d79 (diff) |
Added support for NV_light_max_exponent.
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r-- | src/mesa/main/get.c | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 999adcc84f8..09895f8090e 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1518,6 +1518,16 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params ) *params = ENUM_TO_BOOL(ctx->Stencil.ActiveFace ? GL_BACK : GL_FRONT); break; + /* GL_NV_light_max_exponent */ + case GL_MAX_SHININESS_NV: + CHECK_EXTENSION_B(NV_light_max_exponent, pname); + *params = FLOAT_TO_BOOL(ctx->Const.MaxShininess); + break; + case GL_MAX_SPOT_EXPONENT_NV: + CHECK_EXTENSION_B(NV_light_max_exponent, pname); + *params = FLOAT_TO_BOOL(ctx->Const.MaxSpotExponent); + break; + #if FEATURE_ARB_vertex_buffer_object case GL_ARRAY_BUFFER_BINDING_ARB: CHECK_EXTENSION_B(ARB_vertex_buffer_object, pname); @@ -3016,6 +3026,16 @@ _mesa_GetDoublev( GLenum pname, GLdouble *params ) *params = (GLdouble) (ctx->Stencil.ActiveFace ? GL_BACK : GL_FRONT); break; + /* GL_NV_light_max_exponent */ + case GL_MAX_SHININESS_NV: + CHECK_EXTENSION_B(NV_light_max_exponent, pname); + *params = (GLdouble) ctx->Const.MaxShininess; + break; + case GL_MAX_SPOT_EXPONENT_NV: + CHECK_EXTENSION_B(NV_light_max_exponent, pname); + *params = (GLdouble) ctx->Const.MaxSpotExponent; + break; + #if FEATURE_ARB_vertex_buffer_object case GL_ARRAY_BUFFER_BINDING_ARB: CHECK_EXTENSION_D(ARB_vertex_buffer_object, pname); @@ -4490,6 +4510,16 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params ) *params = (GLfloat) (ctx->Stencil.ActiveFace ? GL_BACK : GL_FRONT); break; + /* GL_NV_light_max_exponent */ + case GL_MAX_SHININESS_NV: + CHECK_EXTENSION_B(NV_light_max_exponent, pname); + *params = ctx->Const.MaxShininess; + break; + case GL_MAX_SPOT_EXPONENT_NV: + CHECK_EXTENSION_B(NV_light_max_exponent, pname); + *params = ctx->Const.MaxSpotExponent; + break; + #if FEATURE_ARB_vertex_buffer_object case GL_ARRAY_BUFFER_BINDING_ARB: CHECK_EXTENSION_F(ARB_vertex_buffer_object, pname); @@ -6002,6 +6032,16 @@ _mesa_GetIntegerv( GLenum pname, GLint *params ) *params = (GLint) (ctx->Stencil.ActiveFace ? GL_BACK : GL_FRONT); break; + /* GL_NV_light_max_exponent */ + case GL_MAX_SHININESS_NV: + CHECK_EXTENSION_B(NV_light_max_exponent, pname); + *params = (GLint) ctx->Const.MaxShininess; + break; + case GL_MAX_SPOT_EXPONENT_NV: + CHECK_EXTENSION_B(NV_light_max_exponent, pname); + *params = (GLint) ctx->Const.MaxSpotExponent; + break; + #if FEATURE_ARB_vertex_buffer_object case GL_ARRAY_BUFFER_BINDING_ARB: CHECK_EXTENSION_I(ARB_vertex_buffer_object, pname); |