X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fmswin%2Ffg_internal_mswin.h;h=912b6f7175bf7e9e005ca5f53763d016588334a4;hb=e1b231e938f0851ea4fb97c9ee2aae59110dd24a;hp=571db4024d6e4065a00a729103db6f8fc4fdc11e;hpb=5b3d339481bac6dbaeb599bffc1325f716585bfe;p=freeglut diff --git a/src/mswin/fg_internal_mswin.h b/src/mswin/fg_internal_mswin.h index 571db40..912b6f7 100644 --- a/src/mswin/fg_internal_mswin.h +++ b/src/mswin/fg_internal_mswin.h @@ -1,5 +1,5 @@ /* - * freeglut_internal_mswin.h + * fg_internal_mswin.h * * The freeglut library private include file. * @@ -48,10 +48,6 @@ #endif -#ifndef HAVE_VFPRINTF -#define HAVE_VFPRINTF 1 -#endif - /* MinGW may lack a prototype for ChangeDisplaySettingsEx() (depending on the version?) */ #if !defined(ChangeDisplaySettingsEx) LONG WINAPI ChangeDisplaySettingsExA(LPCSTR,LPDEVMODEA,HWND,DWORD,LPVOID); @@ -91,8 +87,20 @@ struct tagSFG_PlatformContext typedef struct tagSFG_PlatformWindowState SFG_PlatformWindowState; struct tagSFG_PlatformWindowState { - RECT OldRect; /* window rect - stored before the window is made fullscreen */ - DWORD OldStyle; /* window style - stored before the window is made fullscreen */ + RECT OldRect; /* window rect - stored before the window is made fullscreen */ + DWORD OldStyle; /* window style - stored before the window is made fullscreen */ + DWORD OldStyleEx; /* window Ex style - stored before the window is made fullscreen */ + BOOL OldMaximized; /* window maximized state - stored before the window is made fullscreen */ + + BOOL MouseTracking; /* Needed for generating GLUT_ENTERED and GLUT_LEFT entry func callbacks on windows */ + + /* Need to store window titles to emulate + * glutSetIconTitle/glutSetWindowTitle as Windows has only + * one title associated with a window and we need to swap + * them out based on the window's iconic state + */ + char* WindowTitle; + char* IconTitle; }; @@ -119,6 +127,12 @@ struct tagSFG_PlatformJoystick #define FREEGLUT_MENU_PEN_HBACK_COLORS {0.15f, 0.15f, 0.45f, 1.0f} +/* -- PRIVATE FUNCTION DECLARATIONS ---------------------------------------- */ +/* Spaceball device functions, defined in fg_spaceball_mswin.c */ +//Added by Jinrong Xie 12/24/2014 +int fgIsSpaceballWinEvent(HWND hwnd, WPARAM wParam, LPARAM lParam); +void fgSpaceballHandleWinEvent(HWND hwnd, WPARAM wParam, LPARAM lParam); + /* Function to be called on exit */ extern void (__cdecl *__glutExitFunc)( int return_value );