From f42788880f06650763669e1dbb5bac54b3558148 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 15 Jul 2010 18:15:42 +0000 Subject: [PATCH] add explicit glx prototypes --- panda/src/glxdisplay/glxGraphicsStateGuardian.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/panda/src/glxdisplay/glxGraphicsStateGuardian.h b/panda/src/glxdisplay/glxGraphicsStateGuardian.h index fec63ec3e2..64bc357387 100644 --- a/panda/src/glxdisplay/glxGraphicsStateGuardian.h +++ b/panda/src/glxdisplay/glxGraphicsStateGuardian.h @@ -63,6 +63,15 @@ extern "C" void (*glXGetProcAddressARB(const GLubyte *procName))( void ); #ifndef __EDG__ // Protect the following from the Tau instrumentor. typedef __GLXextFuncPtr (* PFNGLXGETPROCADDRESSPROC) (const GLubyte *procName); typedef int (* PFNGLXSWAPINTERVALSGIPROC) (int interval); + +typedef GLXFBConfig * (* PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements); +typedef GLXContext (* PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct); +typedef XVisualInfo * (* PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config); +typedef int (* PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value); +typedef GLXPixmap (* PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list); +typedef GLXPbuffer (* PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list); +typedef void (* PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf); + #endif // __EDG__ ////////////////////////////////////////////////////////////////////