Hi Sean,

As Wang Rui pointed out the osgDB::ReaderWriter's have a
readNode/writeNode(std::istream&,Options*) interface that a number of
plugins support.  The easiest way to use it in the case of a byte
buffer is to create a std::stringstream, populate this than pass it
in.

Have a look at the src/osgPlugin/curl for an example of this in action.

Robert.

On Tue, Nov 4, 2008 at 10:28 PM, Sean Spicer <[EMAIL PROTECTED]> wrote:
> 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