\r
/* -- PRIVATE FUNCTIONS ---------------------------------------------------- */\r
\r
-extern void fghInitialize( const char* displayName );\r
-extern void fghDeinitialiseInputDevices ( void );\r
-extern void fghCloseDisplay ( void );\r
+extern void fgPlatformInitialize( const char* displayName );\r
+extern void fgPlatformDeinitialiseInputDevices ( void );\r
+extern void fgPlatformCloseDisplay ( void );\r
\r
#if TARGET_HOST_POSIX_X11\r
\r
/*\r
* A call to this function should initialize all the display stuff...\r
*/\r
-static void fghInitialize( const char* displayName )\r
+void fgPlatformInitialize( const char* displayName )\r
{\r
fgDisplay.Display = XOpenDisplay( displayName );\r
\r
\r
\r
#if TARGET_HOST_POSIX_X11\r
-static void fghDeinitialiseInputDevices ( void )\r
+void fgPlatformDeinitialiseInputDevices ( void )\r
{\r
fghCloseInputDevices ();\r
\r
}\r
\r
\r
-static void fghCloseDisplay ( void )\r
+void fgPlatformCloseDisplay ( void )\r
{\r
/*\r
* Make sure all X-client data we have created will be destroyed on\r
free( timer );\r
}\r
\r
- fghDeinitialiseInputDevices ();\r
+ fgPlatformDeinitialiseInputDevices ();\r
\r
fgState.MouseWheelTicks = 0;\r
\r
fgState.ProgramName = NULL;\r
}\r
\r
- fghCloseDisplay ();\r
+ fgPlatformCloseDisplay ();\r
\r
fgState.Initialised = GL_FALSE;\r
}\r
\r
\r
-#if defined TARGET_HOST_MS_WINDOWS\r
+#if TARGET_HOST_MS_WINDOWS\r
#define NoValue 0x0000\r
#define XValue 0x0001\r
#define YValue 0x0002\r
* in the program arguments, we will use the DISPLAY environment\r
* variable for opening the X display (see code above):\r
*/\r
- fghInitialize( displayName );\r
+ fgPlatformInitialize( displayName );\r
\r
/*\r
* Geometry parsing deffered until here because we may need the screen\r