\r
#define INVALID_MODIFIERS 0xffffffff\r
\r
+\r
+\r
+/* Platform-specific includes */\r
+#if TARGET_HOST_POSIX_X11\r
+#endif\r
+#if TARGET_HOST_MS_WINDOWS\r
+#include "../mswin/freeglut_internal_mswin.h"\r
+#endif\r
+\r
+\r
/* -- GLOBAL TYPE DEFINITIONS ---------------------------------------------- */\r
\r
/* Freeglut callbacks type definitions */\r
void fgCreateStructure( void );\r
void fgDestroyStructure( void );\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
-/* The window procedure for Win32 events handling */\r
-#if TARGET_HOST_MS_WINDOWS\r
-LRESULT CALLBACK fgPlatformWindowProc( HWND hWnd, UINT uMsg,\r
- WPARAM wParam, LPARAM lParam );\r
-void fgNewWGLCreateContext( SFG_Window* window );\r
-GLboolean fgSetupPixelFormat( SFG_Window* window, GLboolean checkOnly,\r
- unsigned char layer_type );\r
-#endif\r
-\r
/*\r
* Window creation, opening, closing and destruction.\r
* Also CallBack clearing/initialization.\r
void fgEnumSubWindows( SFG_Window* window, FGCBenumerator enumCallback,\r
SFG_Enumerator* enumerator );\r
\r
-#if TARGET_HOST_MS_WINDOWS\r
-/* \r
- * Helper functions for getting client area from the window rect\r
- * and the window rect from the client area given the style of the window\r
- * (or a valid window pointer from which the style can be queried).\r
- */\r
-void fghComputeWindowRectFromClientArea_UseStyle ( const DWORD windowStyle , RECT *clientRect, BOOL posIsOutside );\r
-void fghComputeWindowRectFromClientArea_QueryWindow( const SFG_Window *window, RECT *clientRect, BOOL posIsOutside );\r
-void fghComputeClientAreaFromWindowRect ( const SFG_Window *window, RECT *windowRect, BOOL wantPosOutside );\r
-RECT fghGetClientArea ( const SFG_Window *window, BOOL wantPosOutside );\r
-void fghGetBorderWidth(const DWORD windowStyle, int* xBorderWidth, int* yBorderWidth);\r
-#endif\r
-\r
/*\r
* fgWindowByHandle returns a (SFG_Window *) value pointing to the\r
* first window in the queue matching the specified window handle.\r