}
/* CENTRY */
-int APIENTRY
+int GLUTAPIENTRY
glutGetWindow(void)
{
if (__glutCurrentWindow) {
}
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutSetWindow(int win)
{
GLUTwindow *window;
list[n++] = 1;
}
}
-#if defined(GLX_VERSION_1_1) && defined(GLX_SGIS_multisample)
+#if defined(GLX_VERSION_1_1) && (defined(GLX_SGIS_multisample) || defined(GLX_ARB_multisample))
if (GLUT_WIND_IS_MULTISAMPLE(mode)) {
- if (!__glutIsSupportedByGLX("GLX_SGIS_multisample"))
+ if (!__glutIsSupportedByGLX("GLX_SGIS_multisample") &&
+ !__glutIsSupportedByGLX("GLX_ARB_multisample"))
return NULL;
+#if defined(GLX_ARB_multisample)
+ list[n++] = GLX_SAMPLES_ARB;
+#elif defined(GLX_SGIS_multisample)
list[n++] = GLX_SAMPLES_SGIS;
+#endif
/* XXX Is 4 a reasonable minimum acceptable number of
samples? */
list[n++] = 4;
window->renderWin = window->win;
#if defined(GLX_VERSION_1_1) && defined(GLX_SGIX_fbconfig)
if (fbc) {
- window->ctx = glXCreateContextWithConfigSGIX(__glutDisplay, fbc,
+ window->ctx = __glut_glXCreateContextWithConfigSGIX(__glutDisplay, fbc,
GLX_RGBA_TYPE_SGIX, None, __glutTryDirect);
} else
#endif
}
/* CENTRY */
-int APIENTRY
+int GLUTAPIENTRY
glutCreateWindow(const char *title)
{
static int firstWindow = 1;
}
#ifdef _WIN32
-int APIENTRY
+int GLUTAPIENTRY
__glutCreateWindowWithExit(const char *title, void (__cdecl *exitfunc)(int))
{
__glutExitFunc = exitfunc;
}
#endif
-int APIENTRY
+int GLUTAPIENTRY
glutCreateSubWindow(int win, int x, int y, int width, int height)
{
GLUTwindow *window;
}
/* CENTRY */
-void APIENTRY
+void GLUTAPIENTRY
glutDestroyWindow(int win)
{
GLUTwindow *window = __glutWindowList[win - 1];
}
}
-void APIENTRY
+void GLUTAPIENTRY
glutDisplayFunc(GLUTdisplayCB displayFunc)
{
/* XXX Remove the warning after GLUT 3.0. */
__glutCurrentWindow->display = displayFunc;
}
-void APIENTRY
+void GLUTAPIENTRY
glutMouseFunc(GLUTmouseCB mouseFunc)
{
if (__glutCurrentWindow->mouse) {
__glutCurrentWindow->mouse = mouseFunc;
}
-void APIENTRY
+void GLUTAPIENTRY
glutMotionFunc(GLUTmotionCB motionFunc)
{
/* Hack. Some window managers (4Dwm by default) will mask
__glutCurrentWindow->motion = motionFunc;
}
-void APIENTRY
+void GLUTAPIENTRY
glutPassiveMotionFunc(GLUTpassiveCB passiveMotionFunc)
{
__glutChangeWindowEventMask(PointerMotionMask,
__glutCurrentWindow->passive = passiveMotionFunc;
}
-void APIENTRY
+void GLUTAPIENTRY
glutEntryFunc(GLUTentryCB entryFunc)
{
__glutChangeWindowEventMask(EnterWindowMask | LeaveWindowMask,
}
}
-void APIENTRY
+void GLUTAPIENTRY
glutWindowStatusFunc(GLUTwindowStatusCB windowStatusFunc)
{
__glutChangeWindowEventMask(VisibilityChangeMask,
__glutCurrentWindow->visibility(GLUT_VISIBLE);
}
-void APIENTRY
+void GLUTAPIENTRY
glutVisibilityFunc(GLUTvisibilityCB visibilityFunc)
{
__glutCurrentWindow->visibility = visibilityFunc;
glutWindowStatusFunc(NULL);
}
-void APIENTRY
+void GLUTAPIENTRY
glutReshapeFunc(GLUTreshapeCB reshapeFunc)
{
if (reshapeFunc) {