}
}
+void SampleEntry(int state)
+{
+ int window = glutGetWindow () ;
+ printf ( "Window %d Entry Callback: %d\n", window, state ) ;
+ glutPostRedisplay () ;
+}
+
/*
* The reshape function
*/
glutKeyboardFunc( SampleKeyboard );
glutSpecialFunc( SampleSpecial );
glutIdleFunc( SampleIdle );
+ glutEntryFunc( SampleEntry );
glutAttachMenu( GLUT_LEFT_BUTTON );
glutInitWindowPosition( 200, 200 );