Hi Chuck,

In the first example I obtained a ReaderWriter object named rwDDS, and then
call its setGlobalOption() method. So it actually does the same work with
the second example, that is, set the global option for a specified plugin.
osgDB::setOptions() can set options for all plugins' read/write interfaces
unless they specify one themselves.

Cheers,

Wang Rui

2010/10/19 Chuck Seberino <[email protected]>

> Wang,
>
> I was wondering how you would keep this information resident in the
> Registry.  From your first example it seems like you are setting an option
> that would attempt to be applied to ALL ReaderWriter transactions,
> regardless of extension.  In this case, some general types of options could
> be agreed upon and used by many different plugins.  In your second example
> it looks like you want to create a specific option map for a single
> ReaderWriter.  In this case the option would ONLY be applied to the dds
> plugin.  So are you thinking about having both cases handled with your
> implementation - both multi-plugin as well as single-plugin options?
>
> Chuck Seberino
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to