+/*\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
+/* Window's state description. This structure should be kept portable. */\r
+typedef struct tagSFG_PlatformWindowState SFG_PlatformWindowState;\r
+struct tagSFG_PlatformWindowState\r
+{\r
+ RECT OldRect; /* window rect - stored before the window is made fullscreen */\r
+ DWORD OldStyle; /* window style - stored before the window is made fullscreen */\r
+};\r
+\r
+\r
+\r
+/* Joystick-Specific Definitions */\r
+#if !defined(_WIN32_WCE)\r
+# define _JS_MAX_AXES 8\r
+typedef struct tagSFG_PlatformJoystick SFG_PlatformJoystick;\r
+struct tagSFG_PlatformJoystick\r
+{\r
+ JOYCAPS jsCaps;\r
+ JOYINFOEX js;\r
+ UINT js_id;\r
+};\r
+#endif\r
+\r
+\r
+/* Menu font and color definitions */\r
+#define FREEGLUT_MENU_FONT GLUT_BITMAP_8_BY_13\r
+\r
+#define FREEGLUT_MENU_PEN_FORE_COLORS {0.0f, 0.0f, 0.0f, 1.0f}\r
+#define FREEGLUT_MENU_PEN_BACK_COLORS {0.85f, 0.85f, 0.85f, 1.0f}\r
+#define FREEGLUT_MENU_PEN_HFORE_COLORS {1.0f, 1.0f, 1.0f, 1.0f}\r
+#define FREEGLUT_MENU_PEN_HBACK_COLORS {0.15f, 0.15f, 0.45f, 1.0f}\r
+\r
+\r
+/* Function to be called on exit */\r
+extern void (__cdecl *__glutExitFunc)( int return_value );\r