Hello everyone,
When running osgviewerPySide.py I get the following error:
NotImplementedError: Wrong number or type of arguments for overloaded
function 'new_GraphicsWindowEmbedded'.
Possible C/C++ prototypes are:
osgViewer::GraphicsWindowEmbedded::GraphicsWindowEmbedded(osg::GraphicsContext::Traits
*)
osgViewer::GraphicsWindowEmbedded::GraphicsWindowEmbedded()
osgViewer::GraphicsWindowEmbedded::GraphicsWindowEmbedded(int,int,int,int)
The call is made in PySideOSGWidget.createContext():
gw = osgViewer.GraphicsWindowEmbedded(traits)
I am able to make the call without using the osg.Traits:
gw = osgViewer.GraphicsWindowEmbedded(self.x(), self.y(),
self.width(), self.height())
But I want to use the other properties provided by Traits, other than
dimensions.
Another problem was that PySideOSGWidget.initializeGL() was not being
called for some reason, so I had to add the line:
self.viewerWidget.initializeGL()
Any ideas? Thanks!
/JohnK
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org