On 3/30/07, Alex Holkner <[EMAIL PROTECTED]> wrote: > > > Alex Holkner wrote: > > >Wouter van Heyst wrote: > > > > > > > >>Hey all, > >> > >>has anyone tried to use pyglet to do the work on an OpenGL widget (in > >>my case currently for wx?) > >>I'm hoping it's mostly a case of telling pyglet what context to use, > >>but perhaps there is more work that needs to be done. > >> > >> > > > >If your widget already creates a context, then pyglet will work right > >now: just switch to the context (in the other framework), and start > >using pyglet.gl functions. You would not use pyglet.window at all in > >this scenario. > > > > > I should add that I'm assuming Python is running in the same process as > the window. If not, you _may_ be able to pass the context (an opaque > pointer) to pyglet (see pyglet.window.WindowFactory), but I don't think > this will necessarily work on all platforms.
Eh, even different threads is scarier than I'm willing to try :) (seeing as that wx itself is having quite a bit of trouble in that scenario) Wouter van Heyst --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
