An IntPtr is managed version of a void pointer.

Erlend

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield
Sent: 16. april 2008 16:46
To: OpenSceneGraph Users
Subject: Re: [osg-users] error in doing SceneView->cull, primitiveset is 0

On Wed, Apr 16, 2008 at 3:42 PM,  <[EMAIL PROTECTED]> wrote:
> Hi Robert,
>
>  Sorry for bad example, but the example is actually just the same as in the 
> osgbillboard example, which works.. So i guess there is some other error. I 
> do cast the Billboard pointer to an IntPtr and then back to a Node* before 
> inserting into the scenegraph root node. I do this in a ref (mixed mode)class 
> for building object from managed to native. But i guess that should be ok..?

Well you've lost me, what's a IntPtr??  Do you mean ref_ptr<>?  If so
just use the .get() to get the C pointer that you can pass into a
group->addChild(nodePtr) method.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to