get rid of unused span->start field
[mesa.git] / progs / xdemos / pbutil.h
index d13c969c4c82bc35c8707172c975074e71433470..e95b2565a23172d883b2e5ea09d0eb1e3bdb3081 100644 (file)
@@ -1,4 +1,3 @@
-
 /*
  * OpenGL pbuffers utility functions.
  *
 #include <GL/glx.h>
 
 
+#if defined(GLX_VERSION_1_3)
+#define PBUFFER GLXPbuffer
+#define FBCONFIG GLXFBConfig
+#elif defined(GLX_SGIX_fbconfig) && defined(GLX_SGIX_pbuffer)
+#define PBUFFER GLXPbufferSGIX
+#define FBCONFIG GLXFBConfigSGIX
+#else
+#define PBUFFER int
+#define FBCONFIG int
+#endif
+
+
 extern int
 QueryPbuffers(Display *dpy, int screen);
 
 
-#ifdef GLX_SGIX_fbconfig
+extern void
+PrintFBConfigInfo(Display *dpy, int screen, FBCONFIG config, Bool horizFormat);
+
+
+extern FBCONFIG *
+ChooseFBConfig(Display *dpy, int screen, const int attribs[], int *nConfigs);
+
+
+extern FBCONFIG *
+GetAllFBConfigs(Display *dpy, int screen, int *nConfigs);
+
+
+extern XVisualInfo *
+GetVisualFromFBConfig(Display *dpy, int screen, FBCONFIG config);
+
+
+extern GLXContext
+CreateContext(Display *dpy, int screen, FBCONFIG config);
 
 
 extern void
-PrintFBConfigInfo(Display *dpy, GLXFBConfigSGIX fbConfig, Bool horizFormat);
+DestroyContext(Display *dpy, GLXContext ctx);
 
 
-extern GLXPbufferSGIX
-CreatePbuffer( Display *dpy, GLXFBConfigSGIX fbConfig,
-              int width, int height, int *pbAttribs );
+extern PBUFFER
+CreatePbuffer(Display *dpy, int screen, FBCONFIG config,
+             int width, int height, Bool preserve, Bool largest);
 
 
-#endif  /*GLX_SGIX_fbconfig*/
+extern void
+DestroyPbuffer(Display *dpy, int screen, PBUFFER pbuffer);
 
 
 #endif  /*PBUTIL_H*/