On 3/30/07, Alex Holkner <[EMAIL PROTECTED]> 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.
My problem was pyglet.font needing a shared space, and assuming there was a window available. On the other hand, if you are trying to embed an OpenGL context within > an ordinary window, pyglet does not yet do this. It would not be hard > to add the functionality (given, say, an HWND on Windows, a Window on > Xlib and a Port or something on OS X). Events would still need to be > handled by the owner of the window (not pyglet). I started on making a WxGLContext class based on the xlib one. I'll see if I can just rework the font module a bit. 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 -~----------~----~----~----~------~----~------~--~---
