[osg-users] dynamic_cast equivalent in osgDotNet
Christophe Medard
christophe.medard at oktal.fr
Tue Oct 2 04:16:17 PDT 2007
It's basically the 'as' C# cast operator.
osgGA::GUIActionAdapter& aa;
osgViewer::Viewer* viewer = dynamic_cast<osgViewer::Viewer*>( &aa );
in C++ becomes :
OsgGA.GUIActionAdapter aa;
OsgViewer.Viewer viewer = aa as OsgViewer.Viewer;
----- Original Message -----
From: "Christoffer Markusson" <ch.markusson at gmail.com>
To: <osg-users at lists.openscenegraph.org>
Sent: Tuesday, October 02, 2007 12:26 PM
Subject: [osg-users] dynamic_cast equivalent in osgDotNet
> Hi,
>
> What is the equivalence in C# using the osgDotNet wrappers to do the
> following?
>
> osgGA::GUIActionAdapter& aa
> osgViewer::Viewer* viewer = dynamic_cast<osgViewer::Viewer*>( &aa );
>
> Christoffer
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
More information about the osg-users
mailing list