X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_internal.h;h=dbae6769378c3b99acf2c70b0a91982ed7595545;hb=151cec6ef6d821bbb0a61f9482386359ca956ce2;hp=b3d892d44e0219d4653b275d29944ea16e754a89;hpb=245192c21f4c05d2d8e99373cd3711ebe9182d92;p=freeglut diff --git a/src/fg_internal.h b/src/fg_internal.h index b3d892d..dbae676 100644 --- a/src/fg_internal.h +++ b/src/fg_internal.h @@ -166,7 +166,13 @@ typedef unsigned long fg_time_t; #endif - +#ifndef __fg_unused +# ifdef __GNUC__ +# define __fg_unused __attribute__((unused)) +# else +# define __fg_unused +# endif +#endif /* Platform-specific includes */ #if TARGET_HOST_POSIX_X11 @@ -213,6 +219,10 @@ typedef void (* FGCBMultiButton )( int, int, int, int, int ); typedef void (* FGCBMultiMotion )( int, int, int ); typedef void (* FGCBMultiPassive )( int, int, int ); +typedef void (* FGCBFixMyNameInitContext)(); +typedef void (* FGCBFixMyNamePause)(); +typedef void (* FGCBFixMyNameResume)(); + /* The global callbacks type definitions */ typedef void (* FGCBIdle )( void ); typedef void (* FGCBTimer )( int ); @@ -391,6 +401,8 @@ struct tagSFG_WindowState GLboolean NeedToResize; /* Do we need to resize the window? */ GLboolean IsFullscreen; /* is the window fullscreen? */ + + GLboolean NeedToFixMyNameInitContext; /* are OpenGL context/resources loaded? */ }; @@ -522,6 +534,11 @@ enum CB_MultiMotion, CB_MultiPassive, + /* Mobile platforms LifeCycle */ + CB_FixMyNameInitContext, + CB_FixMyNamePause, + CB_FixMyNameResume, + /* Presently ignored */ CB_Select, CB_OverlayDisplay,