Hi Sean,

Try this:
osgDB::ReaderWriter::readNode(std::istream&, const Options* =NULL)

You should obtain the ReaderWriter plugin first:
osgDB::Registry::instance()->getReaderWriterForExtension(
osgDB::getLowerCaseFileExtension(filename) );

It supports .osg files.

Wang Rui

2008/11/5 Sean Spicer <[EMAIL PROTECTED]>

> Is there a way to load files from a byte-buffer?  I'd like to be able to
> store certain shape-files as resources and load them with something similar
> to:
>
> osgDB::readNodeFile(shapeFile)
>
> something like:
>
> osgDb::readFromByteBuffer(char *buffer, size_t size);
>
> I can't find anything like this in the API, does it exist?
>
> cheers,
>
> sean
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to