[osg-users] setUpViewerAsEmbeddedInWindow and wxPython glcanvas
rfritz333 at gmail.com
Sat Nov 21 18:49:04 PST 2009
On 2009-10-07, Randolph Fritz <rfritz333 at gmail.com> wrote:
> Thank you, that helped a lot. My C++ code has now come up and run in a
> Python GLUT test bed program, though I'm still having problems with
And, this is why:
> It turns out that osgViewer::Viewer::setUpViewerAsEmbeddedInWindow()
> works much, much better when the window width and height are
> non-zero. However, on the Mac (but not on Windows or Linux),
> WxPython initially sets the width and height to zero, andthe window
> is then resized.
I hacked the code to set them to (1,1) when either was reported as
zero, and the code now works. I suppose I could now write osgviewerWxPy.
More information about the osg-users