diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2001-06-26 01:32:48 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2001-06-26 01:32:48 +0000 |
commit | 8c2f6c5059a60d845716277973c826f4069926e6 (patch) | |
tree | 75f91539198cc4b27464469231ca0eb734dc5abc /src/mesa/main/get.c | |
parent | 657323bf03a575bf40cff83119f201a9dcd1478e (diff) |
added GL_IBM_rasterpos_clip extension
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r-- | src/mesa/main/get.c | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 58e1605fb2..9c44eb6024 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1,4 +1,4 @@ -/* $Id: get.c,v 1.64 2001/06/20 18:54:43 brianp Exp $ */ +/* $Id: get.c,v 1.65 2001/06/26 01:32:48 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1335,6 +1335,16 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params ) return; } + /* GL_IBM_rasterpos_clip */ + case GL_RASTER_POSITION_UNCLIPPED_IBM: + if (ctx->Extensions.IBM_rasterpos_clip) { + *params = ctx->Transform.RasterPositionUnclipped; + } + else { + _mesa_error(ctx, GL_INVALID_ENUM, "glGetBoolean"); + return; + } + /* GL_MESA_sprite_point */ case GL_SPRITE_POINT_MESA: if (ctx->Extensions.MESA_sprite_point) { @@ -2615,6 +2625,16 @@ _mesa_GetDoublev( GLenum pname, GLdouble *params ) return; } + /* GL_IBM_rasterpos_clip */ + case GL_RASTER_POSITION_UNCLIPPED_IBM: + if (ctx->Extensions.IBM_rasterpos_clip) { + *params = (GLdouble) ctx->Transform.RasterPositionUnclipped; + } + else { + _mesa_error(ctx, GL_INVALID_ENUM, "glGetDoublev"); + return; + } + /* GL_MESA_sprite_point */ case GL_SPRITE_POINT_MESA: if (ctx->Extensions.MESA_sprite_point) { @@ -3869,6 +3889,16 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params ) return; } + /* GL_IBM_rasterpos_clip */ + case GL_RASTER_POSITION_UNCLIPPED_IBM: + if (ctx->Extensions.IBM_rasterpos_clip) { + *params = (GLfloat) ctx->Transform.RasterPositionUnclipped; + } + else { + _mesa_error(ctx, GL_INVALID_ENUM, "glGetFloatn"); + return; + } + /* GL_MESA_sprite_point */ case GL_SPRITE_POINT_MESA: if (ctx->Extensions.MESA_sprite_point) { @@ -5172,6 +5202,16 @@ _mesa_GetIntegerv( GLenum pname, GLint *params ) return; } + /* GL_IBM_rasterpos_clip */ + case GL_RASTER_POSITION_UNCLIPPED_IBM: + if (ctx->Extensions.IBM_rasterpos_clip) { + *params = (GLint) ctx->Transform.RasterPositionUnclipped; + } + else { + _mesa_error(ctx, GL_INVALID_ENUM, "glGetIntegerv"); + return; + } + /* GL_MESA_sprite_point */ case GL_SPRITE_POINT_MESA: if (ctx->Extensions.MESA_sprite_point) { |