projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8a0d45
)
added entry callback to one demo
author
Diederick Niehorster
<dcnieho@gmail.com>
Sun, 22 Jul 2012 10:03:36 +0000
(10:03 +0000)
committer
Diederick Niehorster
<dcnieho@gmail.com>
Sun, 22 Jul 2012 10:03:36 +0000
(10:03 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1358
7f0cb862
-5218-0410-a997-
914c9d46530a
progs/demos/One/one.c
patch
|
blob
|
history
diff --git
a/progs/demos/One/one.c
b/progs/demos/One/one.c
index
cdabd24
..
330921e
100644
(file)
--- a/
progs/demos/One/one.c
+++ b/
progs/demos/One/one.c
@@
-174,6
+174,13
@@
void SampleIdle( void )
}
}
+void SampleEntry(int state)
+{
+ int window = glutGetWindow () ;
+ printf ( "Window %d Entry Callback: %d\n", window, state ) ;
+ glutPostRedisplay () ;
+}
+
/*
* The reshape function
*/
@@
-302,6
+309,7
@@
int main( int argc, char** argv )
glutKeyboardFunc( SampleKeyboard );
glutSpecialFunc( SampleSpecial );
glutIdleFunc( SampleIdle );
+ glutEntryFunc( SampleEntry );
glutAttachMenu( GLUT_LEFT_BUTTON );
glutInitWindowPosition( 200, 200 );