Hi Preet,

On 31 May 2012 08:10, Preet <[email protected]> wrote:
> Hiya,
>
> In the osgstaticviewer.cpp example, there are three sets of macros:
>
> USE_OSGPLUGIN()...
> USE_DOTOSGWRAPPER_LIBRARY()...
> USE_SERIALIZER_WRAPPER_LIBRARY()...
>
> When compiling a static application, how do we know which ones we need
> to include? It seems like they're all related to osgDB with
> USE_OSGPLUGIN corresponding to plugins. I'm not sure what the other
> two are for.

Only the application developer will know what features there
application requires, so it's really down to you to decide and then
include the components that you require.

If you require old style .osg support then you'll need to included the
osg plugin, and the osg wrapper libraries that will provide the
wrappers for the different osg libs/NodeKits, if you just need the new
.osgt/.osgb/.osgbx support then you'll want to include just the osg
plugin and the serialize wrappers.  If you don't need either then you
can dispense with all these includes.

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

Reply via email to