projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
files for demoing GLUT_ICON
[freeglut]
/
progs
/
demos
/
CallbackMaker
/
CallbackMaker.c
diff --git
a/progs/demos/CallbackMaker/CallbackMaker.c
b/progs/demos/CallbackMaker/CallbackMaker.c
index
1252482
..
1b41b0e
100644
(file)
--- a/
progs/demos/CallbackMaker/CallbackMaker.c
+++ b/
progs/demos/CallbackMaker/CallbackMaker.c
@@
-686,8
+686,9
@@
main(int argc, char *argv[])
glClearColor(0.7f, 0.7f, 0.7f, 1.0);
glClearColor(0.7f, 0.7f, 0.7f, 1.0);
- /* callbacks and menus for this window */
+ /* callbacks, settings and menus for this window */
SetWindowCallbacks( 0 );
SetWindowCallbacks( 0 );
+ glutSetCursor(GLUT_CURSOR_CROSSHAIR); /* Cursors are per window */
glutSetMenu(subMenuA);
glutAttachMenu( GLUT_RIGHT_BUTTON );
glutSetMenu(subMenuA);
glutAttachMenu( GLUT_RIGHT_BUTTON );
@@
-701,6
+702,8
@@
main(int argc, char *argv[])
/* callbacks and menus for this window */
SetWindowCallbacks( 0 );
/* 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: " );
printf ( "Please enter something to continue: " );