You can osgDB::getDataFilePathList, append new items to the list retrieved with 
that call, then and set the modified list back to osgDB.

Graham

----Anders wrote---
> From: Anders Backman <ande...@cs.umu.se>
> Subject: Re: [osg-users] Adding resource directory
>
> Yes I saw that one, but what concerned me was the fact that I could only
> SET, not ADD.So if OSG_FILE_PATH is setting it to something, all I can do is
> overwrite it?
> 
> /A
>>
>> On Tue, Apr 28, 2009 at 2:02 PM, Robert Osfield 
>> <robert.osfi...@gmail.com>wrote:
>>
>> Hi Anders,
>>
>> Welcome back to the fold :-)
>>
>> The OSG_FILE_PATH env var is just an initial setting for
>> DataFilePathList in osgDB::Registry.  You can set this programatically
>> using osgDB::setDataFilePathList(...);  This function can be found in
>> include/osgDB/FileUtils.
>>
> Robert.

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to