diff options
author | Brian Paul <[email protected]> | 2004-03-13 18:21:40 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-03-13 18:21:40 +0000 |
commit | 7a6b71ef2944bae1718e8167b2faaceb8422071c (patch) | |
tree | 3fb3435f3728f09486d455f6060f06dd42fe0e80 /src/mesa/main/get.c | |
parent | 5498e8b9f34718aba506421988116ccb1e5e3de7 (diff) |
Implementation of GL_EXT_pixel_buffer_object extension.
Note: extension may not be finalized yet - subject to change!
Note: implementation not fully suitable for h/w implementation yet.
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 723c48ce3c9..fac3f072bc3 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1609,6 +1609,16 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params ) *params = INT_TO_BOOL(ctx->Array.ElementArrayBufferObj->Name); break; #endif +#if FEATURE_EXT_pixel_buffer_object + case GL_PIXEL_PACK_BUFFER_BINDING_EXT: + CHECK_EXTENSION_B(EXT_pixel_buffer_object, pname); + *params = INT_TO_BOOL(ctx->Pack.BufferObj->Name); + break; + case GL_PIXEL_UNPACK_BUFFER_BINDING_EXT: + CHECK_EXTENSION_B(EXT_pixel_buffer_object, pname); + *params = INT_TO_BOOL(ctx->Unpack.BufferObj->Name); + break; +#endif #if FEATURE_ARB_fragment_program case GL_FRAGMENT_PROGRAM_ARB: @@ -3149,6 +3159,16 @@ _mesa_GetDoublev( GLenum pname, GLdouble *params ) *params = (GLdouble) ctx->Array.ElementArrayBufferObj->Name; break; #endif +#if FEATURE_EXT_pixel_buffer_object + case GL_PIXEL_PACK_BUFFER_BINDING_EXT: + CHECK_EXTENSION_D(EXT_pixel_buffer_object, pname); + *params = (GLdouble) ctx->Pack.BufferObj->Name; + break; + case GL_PIXEL_UNPACK_BUFFER_BINDING_EXT: + CHECK_EXTENSION_D(EXT_pixel_buffer_object, pname); + *params = (GLdouble) ctx->Unpack.BufferObj->Name; + break; +#endif #if FEATURE_ARB_fragment_program case GL_FRAGMENT_PROGRAM_ARB: @@ -4665,6 +4685,16 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params ) *params = (GLfloat) ctx->Array.ElementArrayBufferObj->Name; break; #endif +#if FEATURE_EXT_pixel_buffer_object + case GL_PIXEL_PACK_BUFFER_BINDING_EXT: + CHECK_EXTENSION_F(EXT_pixel_buffer_object, pname); + *params = (GLfloat) ctx->Pack.BufferObj->Name; + break; + case GL_PIXEL_UNPACK_BUFFER_BINDING_EXT: + CHECK_EXTENSION_F(EXT_pixel_buffer_object, pname); + *params = (GLfloat) ctx->Unpack.BufferObj->Name; + break; +#endif #if FEATURE_ARB_fragment_program case GL_FRAGMENT_PROGRAM_ARB: @@ -6219,6 +6249,16 @@ _mesa_GetIntegerv( GLenum pname, GLint *params ) *params = (GLint) ctx->Array.ElementArrayBufferObj->Name; break; #endif +#if FEATURE_EXT_pixel_buffer_object + case GL_PIXEL_PACK_BUFFER_BINDING_EXT: + CHECK_EXTENSION_I(EXT_pixel_buffer_object, pname); + *params = (GLint) ctx->Pack.BufferObj->Name; + break; + case GL_PIXEL_UNPACK_BUFFER_BINDING_EXT: + CHECK_EXTENSION_I(EXT_pixel_buffer_object, pname); + *params = (GLint) ctx->Unpack.BufferObj->Name; + break; +#endif #if FEATURE_ARB_fragment_program case GL_FRAGMENT_PROGRAM_ARB: |