now have function to get window style based on FreeGLUT's stateflag
[freeglut] / src / fg_callbacks.c
index 7e399a9..6eff0bf 100644 (file)
@@ -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 ***/