[PyOpenGL-Users] How do I get the window/widget id of an OpenGL drawing area?
Brought to you by:
mcfletch
From: Silverstein <he...@sc...> - 2005-07-30 01:17:23
|
I have an application written in c++ and motif which draws into a 3D Workspace using OpenGL. I'd like to be able to use PyOpenGL to draw into this same window. To do this I need to be able to specify to PyOpenGL which window is the drawing window. I think I can manage to get the window/widget id back to python by providing some python accessor functions which will allow my python app to get this info. What is not clear to me is what function(s) would I call to set the buffer appropriately. Typically we call glXSwapBuffers in our c++ app, but I don't see any glx* functions in PyOpenGL. What module and/or functions can I use to do this? Any pointers, suggestions would be much appreciated. Herc |