[osg-users] Smart Pointer for Memory Management

Christian Buchner christian.buchner at gmail.com
Thu Mar 31 17:50:15 PDT 2016


What you need is a managed wrapper for OpenSceneGraph. I am not sure if any
such thing exists.

Hint: Microsoft has abandoned their managed wrapper for DirectX for
performance reasons..

Christian


2016-04-01 2:19 GMT+02:00 Diwas Bhattarai <osgforum at tevs.eu>:

> Hi,
>
> I want to use Openscenegraph on my Window Form Application. In the moment
> I am writing a Wrapper in CLR application and exporting as a dll and
> importing it in my Window Form Application.
>
> The Problem:
> I cannot use
> *Code:*
>
>
>
>
>
> osg::ref_ptr osgRodot;
>
>
> in my header file where my ref class is defined.
>
>
> *Quote:*
>
>
>
>
>
> IntelliSense: a member of a managed class cannot be of a non-managed class
> type
>
>
>
>
> But I can use the same code inside any functions of the class. But if I
> initialize inside the class I cannot use it in another functions. I want to
> use it in different functions so it's need to be accesible to every
> functions.
>
> Anyone already faced this problem and could help me?
>
> Thank you!
>
> Cheers,
> Diwas
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=66696#66696
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160401/96188948/attachment-0003.htm>


More information about the osg-users mailing list