in reply to Re: OpenGL and AnyEvent
in thread OpenGL and AnyEvent
Thank you, Corion!
I've found that the main trick is to call glutPostRedisplay too, e.g. instead of glutMainLoop
my $refresh_world = sub { glutMainLoopEvent; glutPostRedisplay; }; my $t; $t = AE::timer 0, 0.01, sub { $refresh_world->(); }; $refresh_world->(); AE::cv->recv;
|
---|
In Section
Seekers of Perl Wisdom