files for demoing GLUT_ICON
[freeglut] / progs / demos / CallbackMaker / CallbackMaker.c
index 1252482..1b41b0e 100644 (file)
@@ -686,8 +686,9 @@ main(int argc, char *argv[])
 
   glClearColor(0.7f, 0.7f, 0.7f, 1.0);
 
-  /* callbacks and menus for this window */
+  /* callbacks, settings and menus for this window */
   SetWindowCallbacks( 0 );
+  glutSetCursor(GLUT_CURSOR_CROSSHAIR); /* Cursors are per window */
 
   glutSetMenu(subMenuA);
   glutAttachMenu( GLUT_RIGHT_BUTTON );
@@ -701,6 +702,8 @@ main(int argc, char *argv[])
 
   /* callbacks and menus for this window */
   SetWindowCallbacks( 0 );
+  glutSetCursor(GLUT_CURSOR_INHERIT);   /* Inherit cursor look from parent (this is default on window creation) - comment the below to see in action */
+  glutSetCursor(GLUT_CURSOR_CYCLE);
 
 
   printf ( "Please enter something to continue: " );