diff options
author | Brian Paul <[email protected]> | 2003-04-21 15:02:17 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-04-21 15:02:17 +0000 |
commit | e5b244ff7f984805c1bcc020342f1300f2639c71 (patch) | |
tree | 2662820db42730bb1f0269a2aef440309a81d083 /src/mesa/main/get.c | |
parent | 2780bb824f542c47d5412a3909eaa84ed3f13451 (diff) |
Implemented GL_EXT_depth_bounds_test.
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r-- | src/mesa/main/get.c | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 65c41065cf9..dd1c0016a98 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1593,6 +1593,17 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params ) */ #endif + /* GL_EXT_depth_bounds_test */ + case GL_DEPTH_BOUNDS_TEST_EXT: + CHECK_EXTENSION_B(EXT_depth_bounds_test, pname); + params[0] = ctx->Depth.BoundsTest; + break; + case GL_DEPTH_BOUNDS_EXT: + CHECK_EXTENSION_B(EXT_depth_bounds_test, pname); + params[0] = FLOAT_TO_BOOL(ctx->Depth.BoundsMin); + params[1] = FLOAT_TO_BOOL(ctx->Depth.BoundsMax); + break; + default: _mesa_error(ctx, GL_INVALID_ENUM, "glGetBooleanv(pname=0x%x)", pname); } @@ -3079,6 +3090,17 @@ _mesa_GetDoublev( GLenum pname, GLdouble *params ) */ #endif + /* GL_EXT_depth_bounds_test */ + case GL_DEPTH_BOUNDS_TEST_EXT: + CHECK_EXTENSION_D(EXT_depth_bounds_test, pname); + params[0] = (GLdouble) ctx->Depth.BoundsTest; + break; + case GL_DEPTH_BOUNDS_EXT: + CHECK_EXTENSION_D(EXT_depth_bounds_test, pname); + params[0] = ctx->Depth.BoundsMin; + params[1] = ctx->Depth.BoundsMax; + break; + default: _mesa_error(ctx, GL_INVALID_ENUM, "glGetDoublev(pname=0x%x)", pname); } @@ -4541,6 +4563,17 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params ) */ #endif + /* GL_EXT_depth_bounds_test */ + case GL_DEPTH_BOUNDS_TEST_EXT: + CHECK_EXTENSION_F(EXT_depth_bounds_test, pname); + params[0] = (GLfloat) ctx->Depth.BoundsTest; + break; + case GL_DEPTH_BOUNDS_EXT: + CHECK_EXTENSION_F(EXT_depth_bounds_test, pname); + params[0] = ctx->Depth.BoundsMin; + params[1] = ctx->Depth.BoundsMax; + break; + default: _mesa_error(ctx, GL_INVALID_ENUM, "glGetFloatv(0x%x)", pname); } @@ -6041,6 +6074,17 @@ _mesa_GetIntegerv( GLenum pname, GLint *params ) */ #endif + /* GL_EXT_depth_bounds_test */ + case GL_DEPTH_BOUNDS_TEST_EXT: + CHECK_EXTENSION_I(EXT_depth_bounds_test, pname); + params[0] = ctx->Depth.BoundsTest; + break; + case GL_DEPTH_BOUNDS_EXT: + CHECK_EXTENSION_I(EXT_depth_bounds_test, pname); + params[0] = (GLint) ctx->Depth.BoundsMin; + params[1] = (GLint) ctx->Depth.BoundsMax; + break; + default: _mesa_error(ctx, GL_INVALID_ENUM, "glGetIntegerv(pname=0x%x)", pname); } |