View Full Version : help with glutMainLoop() ...
hi,
is there a way to stop glutMainLoop() ?
i need to make a function where i draw
some polygons in a window and then
according to what i get in the window i
return true/false.
the problem is after i call glutMainLoop()
it doesn't return to the function
anymore...
what should i do ?
please help
bye
If GLUT does not give you what you want, then don't use GLUT. Use something else, like GLFW (http://hem.passagen.se/opengl/glfw/) .
nexusone
02-22-2003, 11:50 AM
Yes that is correct, you setup your functions befor glutmain to call from inside it.
You setup a call back, like glutTimerfunc or glutidlefunc, glutmousefunc, etc.
When that routine is called then use these routines check for a state change.
I have some glut tutors on my website and some links to other glut websites
http://www.angelfire.com/linux/nexusone/
Originally posted by Nirvana:
hi,
is there a way to stop glutMainLoop() ?
i need to make a function where i draw
some polygons in a window and then
according to what i get in the window i
return true/false.
the problem is after i call glutMainLoop()
it doesn't return to the function
anymore...
what should i do ?
please help
bye
[This message has been edited by nexusone (edited 02-22-2003).]
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.