[osg-users] How to implement pagedLOD without reading from files?

Robert Osfield robert.osfield at gmail.com
Fri Nov 11 03:47:01 PST 2016


Hi Wener,

On 11 November 2016 at 11:32, Werner Modenbach
<Werner.Modenbach at texion.eu> wrote:
> just one more small question.
> As to my understanding the ReaderWriter classes are instantiated
> automatically
> according to the "file extensions". So I get no hands on the instances of
> the reader.
> How can I give the reader class a reference to my data structures?

You can pass data into a plugin via the osgDB::Options object that you
can pass along with the string used for the filename.  The Options
object can store user data as well be subclassed.

Robert.



More information about the osg-users mailing list