X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_callbacks.c;h=6eff0bf4e1d8e97ec87ca477421370480f7c7efc;hb=25a96752f76c571c447b00e376f0002568389bad;hp=7e399a9d44438d6cef2cb37474ee7d7789dcd265;hpb=1b5ee849ba61b667aeba474a7e03406196478bee;p=freeglut diff --git a/src/fg_callbacks.c b/src/fg_callbacks.c index 7e399a9..6eff0bf 100644 --- a/src/fg_callbacks.c +++ b/src/fg_callbacks.c @@ -409,4 +409,31 @@ void FGAPIENTRY glutMultiPassiveFunc( void (* callback)(int, int, int ) ) SET_CALLBACK( MultiPassive ); } +/* + * Sets the context reload callback for the current window + */ +void FGAPIENTRY glutInitContextFunc( void (* callback)() ) +{ + FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutInitContextFunc" ); + SET_CALLBACK( InitContext ); +} + +/* + * Sets the pause callback for the current window + */ +void FGAPIENTRY glutPauseFunc( void (* callback)() ) +{ + FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutPauseFunc" ); + SET_CALLBACK( Pause ); +} + +/* + * Sets the resume callback for the current window + */ +void FGAPIENTRY glutResumeFunc( void (* callback)() ) +{ + FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutResumeFunc" ); + SET_CALLBACK( Resume ); +} + /*** END OF FILE ***/