Splitting platform-specific code out of "fgJoystickClose" function
[freeglut] / src / mswin / freeglut_internal_mswin.h
index b0697b5..c83f231 100644 (file)
 #ifndef  FREEGLUT_INTERNAL_MSWIN_H\r
 #define  FREEGLUT_INTERNAL_MSWIN_H\r
 \r
+typedef struct tagSFG_PlatformDisplay SFG_PlatformDisplay;\r
+struct tagSFG_PlatformDisplay\r
+{\r
+    HINSTANCE       Instance;           /* The application's instance        */\r
+    DEVMODE         DisplayMode;        /* Desktop's display settings        */\r
+    char           *DisplayName;        /* Display name for multi display support*/ \r
+};\r
 \r
+/*\r
+ * Make "freeglut" window handle and context types so that we don't need so\r
+ * much conditionally-compiled code later in the library.\r
+ */\r
+typedef HWND    SFG_WindowHandleType ;\r
+typedef HGLRC   SFG_WindowContextType ;\r
+typedef struct tagSFG_PlatformContext SFG_PlatformContext;\r
+struct tagSFG_PlatformContext\r
+{\r
+    HDC             Device;          /* The window's device context         */\r
+};\r
+\r
+\r
+/* Function to be called on exit */\r
+extern void (__cdecl *__glutExitFunc)( int return_value );\r
 \r
 \r
 #endif  /* FREEGLUT_INTERNAL_MSWIN_H */
\ No newline at end of file