I am writing a simple game using cl-opengl (a pacman clone) and would like to have my game event loop call the rendering loop. I know freeglut enables a notion like this with glutMainLoopEvent. Is there any way to do the equivalent in cl-opengl ? I did run across the special variable *run-main-loop-after-display* - but it doesnt seem to take any effect. setting this variable to nil still causes the quad in render-to-texture to rotate - am i missing something ?
On 19/12/2007, Deepankar Sharma deepankar.sharma@gmail.com wrote:
I did run across the special variable *run-main-loop-after-display* - but it doesnt seem to take any effect. setting this variable to nil still causes the quad in render-to-texture to rotate - am i missing something ?
(let ((glut:*run-main-loop-after-display* nil)) (cl-glut-examples:gears))
This works for me. Can you try that?
cl-opengl-devel@common-lisp.net