|Perl: the Markov chain saw|
OpenGL and AnyEventby basiliscos (Pilgrim)
|on May 29, 2014 at 11:04 UTC||Need Help??|
basiliscos has asked for the
wisdom of the Perl Monks concerning the following question:
Hello dear monks!
I'm developing an application using OpenGL. I need some kind of asynchronous behaviour, i.e. when some graphical objects are moving, it should be possible that another events occur.
The common way of writing OpenGL code is to enter to OpenGL/GLUT event loop via: glutMainLoop. Good! But how could I manage schedule-based world mechanics then? I tried to use AnyEvent, but it seems, that simple code like:
Isn't working, when it enters into glutMainLoop. What can I do to make AE work? (OpenGL backend isn't listed among the available AE backends).
Thanks for any help!