Thats a great idea. I think this could be useful for adding multiple files to osgarchive. Currently only single file or whole directory contents can be added. This method could make selection of certain type of files straightforward.

Wojtek

--------------------------------------------------
From: "Jean-Sébastien Guay" <[email protected]>
Sent: Friday, September 10, 2010 5:33 PM
To: "OpenSceneGraph Submissions" <[email protected]>
Subject: [osg-submissions] osgDB function to expand wildcards

Hi Robert,

Instead of waiting for you to say if you agree with the idea, I decided
to submit now and see what you think directly.

This is mainly (for now) to make

osgvolume --images *.png

work on Windows as it does on Linux / Unix-based OSes, but I can see
many other uses for this.

I also made a function to return the current platform's path separator,
and use that in the new function as well as in the
isFileNameNativeStyle() function. Even though Windows supports having
slashes in paths like Linux...

While I was there I added a bit of documentation to some existing functions.

Thanks,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/




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

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

Reply via email to