[osg-users] Loading osgt from string / Compile resources into binary
Robert Osfield
robert.osfield at gmail.com
Wed Jan 23 00:44:10 PST 2019
Hi Michael,
> is it possible to somehow compile resources like models/nodes into an executable?
> How about putting the content of an osgt file as a string into my source code?
> But as far as I've seen, there is no readNodeFromString method in osgDB.
You can pass a std::stringstream to the ReaderWriter that support
reading from istream. You'll need to get the osgDB::ReaderWriter from
the osgDB::Registry instance.
Robert.
More information about the osg-users
mailing list