src/x11/fg_internal_x11_glx.h
src/x11/fg_display_x11_glx.c
src/x11/fg_state_x11_glx.c
+ src/x11/fg_state_x11_glx.h
src/x11/fg_window_x11_glx.c
src/x11/fg_window_x11_glx.h
)
static int fgPlatformGetConfig( int attribute )
{
int returnValue = 0;
- int result; /* Not checked */
+ int result __fg_unused; /* Not checked */
if( fgStructure.CurrentWindow )
result = eglGetConfigAttrib( fgDisplay.pDisplay.egl.Display,
--- /dev/null
+/*
+ * fg_init.h
+ *
+ * Various freeglut initialization functions.
+ *
+ * Copyright (c) 1999-2000 Pawel W. Olszta. All Rights Reserved.
+ * Written by Pawel W. Olszta, <olszta@sourceforge.net>
+ * Creation date: Thu Dec 2 1999
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * PAWEL W. OLSZTA BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#ifndef __FG_INIT_H__
+#define __FG_INIT_H__
+
+extern void fghCloseInputDevices(void);
+extern void fgDeinitialize(void);
+
+#endif
#include "fg_internal.h"
#ifdef EGL_VERSION_1_0
#include "egl/fg_state_egl.h"
+#else
+#include "x11/fg_state_x11_glx.h"
#endif
int fgPlatformGlutDeviceGet ( GLenum eWhat )
#include <GL/freeglut.h>
#include "fg_internal.h"
+#include "x11/fg_window_x11_glx.h"
/*
* Queries the GL context about some attributes
int fgPlatformGetConfig( int attribute )
{
int returnValue = 0;
- int result; /* Not checked */
+ int result __fg_unused; /* Not checked */
if( fgStructure.CurrentWindow )
result = glXGetFBConfigAttrib( fgDisplay.pDisplay.Display,
if (fbconfigArray != NULL)
{
int * temp_array;
- int result; /* Returned by glXGetFBConfigAttrib. Not checked. */
+ int result __fg_unused; /* Returned by glXGetFBConfigAttrib. Not checked. */
int previous_value;
int i;
--- /dev/null
+/*
+ * fg_state_x11_glx.c
+ *
+ * X11-specific freeglut state query methods.
+ *
+ * Copyright (c) 1999-2000 Pawel W. Olszta. All Rights Reserved.
+ * Written by Pawel W. Olszta, <olszta@sourceforge.net>
+ * Copied for Platform code by Evan Felix <karcaw at gmail.com>
+ * Creation date: Thur Feb 2 2012
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * PAWEL W. OLSZTA BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#ifndef __FG_STATE_X11_GLX_H__
+#define __FG_STATE_X11_GLX_H__
+
+int fgPlatformGetConfig(int attribute);
+int fghPlatformGlutGetGLX(GLenum eWhat);
+
+#endif
if (fbconfigArray != NULL)
{
- int result; /* Returned by glXGetFBConfigAttrib, not checked. */
+ int result __fg_unused; /* Returned by glXGetFBConfigAttrib, not checked. */
if( wantIndexedMode )