Re: [PyOpenGL-Devel] pyopengl threading
Brought to you by:
mcfletch
|
From: David H. <the...@ti...> - 2008-10-20 19:02:00
|
I'm so sorry, i now realise i posted this to the wrong list, but, i solved it anyway, turns out you have to set glutIdleFunc. I apologise for taking your time. On Sun, 12 Oct 2008 09:03:58 +0100 David Honour <the...@ti...> wrote: > I used to be able to thread pyopengl by creating a function that did > the tasks below and launching it in a new thread: > -prepare the gl module #this seems to be fine > -run glutMainLoop() #this seems to be causing the probs > > When i try this now it acts very strangely. > print statements and other pure python things seem to go through fine, > but, when i put the call in to the socket library it doesn't happen, > or at least fails to return from the call. > > Also, it now doesn't seem to behave differently when split between 2 > threads, as in it is no different if i do the preparation and > importing in a different thread to the glutMainLoop() call. > > PyOpenGL version 2.0.0.9-r1 > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK > & win great prizes Grand prize is a trip for two to an Open Source > event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Devel mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-devel |