Преглед изворни кода

add explicit glx prototypes

David Rose пре 15 година
родитељ
комит
f42788880f
1 измењених фајлова са 9 додато и 0 уклоњено
  1. 9 0
      panda/src/glxdisplay/glxGraphicsStateGuardian.h

+ 9 - 0
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__
 
 ////////////////////////////////////////////////////////////////////