Rationalizing the names of the platform-specific functions so that they begin with...
[freeglut] / src / mswin / freeglut_init_mswin.c
index ff476fd..1777ebd 100644 (file)
@@ -32,7 +32,7 @@
 /*\r
  * A call to this function should initialize all the display stuff...\r
  */\r
-void fghInitialize( const char* displayName )\r
+void fgPlatformInitialize( const char* displayName )\r
 {\r
     WNDCLASS wc;\r
     ATOM atom;\r
@@ -54,7 +54,7 @@ void fghInitialize( const char* displayName )
          * XXX Old code had "| CS_DBCLCKS" commented out.  Plans for the\r
          * XXX future?  Dead-end idea?\r
          */\r
-        wc.lpfnWndProc    = fgWindowProc;\r
+        wc.lpfnWndProc    = fgPlatformWindowProc;\r
         wc.cbClsExtra     = 0;\r
         wc.cbWndExtra     = 0;\r
         wc.hInstance      = fgDisplay.Instance;\r
@@ -75,7 +75,7 @@ void fghInitialize( const char* displayName )
 \r
         /* Register the window class */\r
         atom = RegisterClass( &wc );\r
-        FREEGLUT_INTERNAL_ERROR_EXIT ( atom, "Window Class Not Registered", "fghInitialize" );\r
+        FREEGLUT_INTERNAL_ERROR_EXIT ( atom, "Window Class Not Registered", "fgPlatformInitialize" );\r
     }\r
 \r
     /* The screen dimensions can be obtained via GetSystemMetrics() calls */\r
@@ -104,7 +104,7 @@ void fghInitialize( const char* displayName )
            DeleteDC(context);\r
         }\r
         else\r
-           fgWarning("fghInitialize: "\r
+           fgWarning("fgPlatformInitialize: "\r
                      "CreateDC failed, Screen size info may be incorrect\n"\r
           "This is quite likely caused by a bad '-display' parameter");\r
       \r
@@ -131,7 +131,7 @@ void fghInitialize( const char* displayName )
 /* Platform-Specific Deinitialization Functions: */\r
 extern void fghCloseInputDevices ( void );\r
 \r
-void fghDeinitialiseInputDevices ( void )\r
+void fgPlatformDeinitialiseInputDevices ( void )\r
 {\r
 #if !defined(_WIN32_WCE)\r
        fghCloseInputDevices ();\r
@@ -140,7 +140,7 @@ void fghDeinitialiseInputDevices ( void )
     fgState.InputDevsInitialised = GL_FALSE;\r
 }\r
 \r
-void fghCloseDisplay ( void )\r
+void fgPlatformCloseDisplay ( void )\r
 {\r
     if( fgDisplay.DisplayName )\r
     {\r