aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r--src/mesa/main/get.c42
1 files changed, 41 insertions, 1 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 58e1605fb2f..9c44eb60243 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) {