diff options
Diffstat (limited to 'src/mesa/drivers/x11/glxapi.c')
-rw-r--r-- | src/mesa/drivers/x11/glxapi.c | 53 |
1 files changed, 51 insertions, 2 deletions
diff --git a/src/mesa/drivers/x11/glxapi.c b/src/mesa/drivers/x11/glxapi.c index 81170a7ef36..25653f8f6f2 100644 --- a/src/mesa/drivers/x11/glxapi.c +++ b/src/mesa/drivers/x11/glxapi.c @@ -1,4 +1,4 @@ -/* $Id: glxapi.c,v 1.31 2002/11/18 15:11:52 brianp Exp $ */ +/* $Id: glxapi.c,v 1.32 2003/01/14 04:49:07 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -988,7 +988,6 @@ Bool glXSet3DfxModeMESA(int mode) - /*** GLX_NV_vertex_array_range ***/ void * @@ -1032,6 +1031,42 @@ glXGetAGPOffsetMESA( const GLvoid *pointer ) } +/*** GLX_ARB_render_Texture ***/ + +Bool +glXBindTexImageARB( Display *dpy, GLXPbuffer pbuffer, int buffer ) +{ + struct _glxapi_table *t; + GET_DISPATCH(dpy, t); + if (!t) + return False; + return (t->BindTexImageARB)(dpy, pbuffer, buffer); +} + + +Bool +glXReleaseTexImageARB(Display *dpy, GLXPbuffer pbuffer, int buffer ) +{ + struct _glxapi_table *t; + GET_DISPATCH(dpy, t); + if (!t) + return False; + return (t->ReleaseTexImageARB)(dpy, pbuffer, buffer); +} + + +Bool +glXDrawableAttribARB( Display *dpy, GLXDrawable draw, const int *attribList ) +{ + struct _glxapi_table *t; + GET_DISPATCH(dpy, t); + if (!t) + return False; + return (t->DrawableAttribARB)(dpy, draw, attribList); +} + + + /**********************************************************************/ /* GLX API management functions */ /**********************************************************************/ @@ -1069,6 +1104,15 @@ _glxapi_get_extensions(void) #ifdef GLX_MESA_set_3dfx_mode "GLX_MESA_set_3dfx_mode", #endif +#ifdef GLX_SGIX_fbconfig + "GLX_SGIX_fbconfig", +#endif +#ifdef GLX_SGIX_pbuffer + "GLX_SGIX_pbuffer", +#endif +#ifdef GLX_ARB_render_texture + "GLX_ARB_render_texture", +#endif NULL }; return extensions; @@ -1248,6 +1292,11 @@ static struct name_address_pair GLX_functions[] = { /*** GLX_MESA_agp_offset ***/ { "glXGetAGPOffsetMESA", (GLvoid *) glXGetAGPOffsetMESA }, + /*** GLX_ARB_render_texture ***/ + { "glXBindTexImageARB", (GLvoid *) glXBindTexImageARB }, + { "glXReleaseTexImageARB", (GLvoid *) glXReleaseTexImageARB }, + { "glXDrawableAttribARB", (GLvoid *) glXDrawableAttribARB }, + { NULL, NULL } /* end of list */ }; |