[osg-users] dynamic_cast equivalent in osgDotNet
robert.osfield at gmail.com
Fri Oct 5 01:03:11 PDT 2007
On 10/5/07, Michael Wittman <wittman at acm.org> wrote:
> On Thu, Oct 04, 2007 at 08:56:55AM +0100, Robert Osfield wrote:
> > osgGA knows about core osg wher osg::View is defined, so could this work?
> Yes, actually that would work well in this case as it would
> provide a pointer to an object in the leftmost inheritance branch of
> osgViewer::Viewer. The output from the wrapped function would be of
> static type Osg.View and dynamic type OsgViewer.Viewer, so it could be
> downcasted without a problem.
> If you're comfortable with that change, please do go ahead and make it.
> It would definitely be helpful to osgDotNet users as a workaround.
Its already in 2.2 :-)
More information about the osg-users