summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/x11/glxapi.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-01-14 04:49:07 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-01-14 04:49:07 +0000
commit3c5bfac63bcbc4028c552fe74d904e6a3416ff36 (patch)
treeb6bda8011e2087d521be2c6481a414d06836849f /src/mesa/drivers/x11/glxapi.c
parente1e446bf775a7f2ea93b4e54c7748ef603500977 (diff)
initial code for render-to-texture
Diffstat (limited to 'src/mesa/drivers/x11/glxapi.c')
-rw-r--r--src/mesa/drivers/x11/glxapi.c53
1 files changed, 51 insertions, 2 deletions
diff --git a/src/mesa/drivers/x11/glxapi.c b/src/mesa/drivers/x11/glxapi.c
index 81170a7ef3..25653f8f6f 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 */
};