Moving platform-specific fields in "SFG_Display" into a substructure
[freeglut] / src / Common / freeglut_state.c
index 20221bb..434b41f 100644 (file)
@@ -45,6 +45,12 @@ extern int fgPlatformGlutGet ( GLenum eWhat );
 extern int fgPlatformGlutDeviceGet ( GLenum eWhat );\r
 extern int fgPlatformGlutLayerGet ( GLenum eWhat );\r
 \r
+/* A helper function to check if a display mode is possible to use */\r
+#if TARGET_HOST_POSIX_X11\r
+GLXFBConfig* fgChooseFBConfig( int* numcfgs );\r
+#endif\r
+\r
+\r
 /* -- LOCAL DEFINITIONS ---------------------------------------------------- */\r
 \r
 /* -- PRIVATE FUNCTIONS ---------------------------------------------------- */\r
@@ -67,7 +73,7 @@ static int fghGetConfig( int attribute )
   return returnValue;\r
 }\r
 \r
-static int fgPlatformGlutGet ( GLenum eWhat )\r
+int fgPlatformGlutGet ( GLenum eWhat )\r
 {\r
     int nsamples = 0;\r
 \r
@@ -227,7 +233,7 @@ static int fgPlatformGlutGet ( GLenum eWhat )
 }\r
 \r
 \r
-static int fgPlatformGlutDeviceGet ( GLenum eWhat )\r
+int fgPlatformGlutDeviceGet ( GLenum eWhat )\r
 {\r
     switch( eWhat )\r
     {\r