this was documented in the old wiki along with pygtk if it still exists...
On Wednesday 21 June 2006 15:59, Jiba wrote: > On Wed, 21 Jun 2006 13:42:23 +0200 > > marco <[EMAIL PROTECTED]> wrote: > > Hello... I'm working on a project using wxPython & Soya. I wish they > > work together syncronously: within wx I started a timer which every 1/25 > > s calls an update routine. This routine should also ask soya to refresh > > its window, but I can't make it work! > > > > If I ask idler to start() in a new thread, I got a GL_ERROR. On the > > other hand idler.idle() works but my routine hangs up, waiting forever a > > return value. > > > > I also tried to start a new thread and calling idle() from there, but I > > got the same GL_ERROR... > > I think this GL_ERROR is because the thread that has created the OpenGL > context (e.g. by calling soya.init()) is not the same that the one that > calls soya.render() (or Idler.idle())... Actually I'm not really sure > Idler.start() is of interest. > > Soya has no unique "update routine", but you can somehow consider the > following as an "update routine" : > > idler.begin_round() > idler.advance_time(1.0) > idler.render() > idler.end_round() > > > I'm thinking to adding an "update" method to idler, that may be called from > an external loop. > > Jiba > > _______________________________________________ > Soya-user mailing list > [email protected] > https://mail.gna.org/listinfo/soya-user _______________________________________________ Soya-user mailing list [email protected] https://mail.gna.org/listinfo/soya-user
