Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: OpenGL and AnyEvent

by basiliscos (Pilgrim)
on May 29, 2014 at 12:34 UTC ( #1087788=note: print w/replies, xml ) Need Help??


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;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1087788]
help
Chatterbox?
[hippo]: https://deps. cpantesters.org/ still down here. :(
[marto]: just use metacpan

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2018-02-20 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (271 votes). Check out past polls.

    Notices?