#include <stdlib.h>
-#if !defined(_WIN32)
-#include <GL/glx.h>
-#endif
-
#ifdef __sgi
#include <dlfcn.h>
#endif
/* Grumble. The IRIX 6.3 and early IRIX 6.4 OpenGL headers
support the video resize extension, but failed to define
GLX_SGIX_video_resize. */
+#if 0
#ifdef GLX_SYNC_FRAME_SGIX
#define GLX_SGIX_video_resize 1
#endif
+#endif
#if defined(GLX_VERSION_1_1) && defined(GLX_SGIX_video_resize)
static int canVideoResize = -1;
static volatile int errorCaught;
/* ARGSUSED */
-static
+static int
catchXSGIvcErrors(Display * dpy, XErrorEvent * event)
{
errorCaught = 1;
errorCaught = 0;
+#if defined(GLX_GLXEXT_PROTOTYPES)
+#endif
glXQueryChannelDeltasSGIX(__glutDisplay, __glutScreen,
videoResizeChannel, &dx, &dy, &dw, &dh);
return vis;
}
-void GLUTCALLBACK
+static void GLUTCALLBACK
__glutDefaultDisplay(void)
{
/* XXX Remove the warning after GLUT 3.0. */
#else
#include <X11/Xlib.h>
#include <X11/Xutil.h>
+#define GLX_GLXEXT_PROTOTYPES
#include <GL/glx.h>
#endif
extern GLUTmenu *__glutCurrentMenu;
extern int __glutWindowListSize;
extern void (*__glutFreeOverlayFunc) (GLUToverlay *);
+extern void __glutFreeOverlay(GLUToverlay * overlay);
extern XVisualInfo *__glutDetermineWindowVisual(Bool * treatAsSingle,
Bool * visAlloced, void **fbc);
int work_mask);
extern void __glutRegisterEventParser(GLUTeventParser * parser);
extern void __glutPostRedisplay(GLUTwindow * window, int layerMask);
+extern void handleTimeouts(void);
/* private routines from glut_init.c */
#if !defined(_WIN32)
extern unsigned __glutMenuButton;
extern GLUTidleCB __glutIdleFunc;
extern GLUTtimer *__glutTimerList;
-extern void handleTimeouts(void);
extern GLUTmenuItem *__glutGetUniqueMenuItem(GLUTmenu * menu, int unique);
static HMENU __glutHMenu;