From Michael Platings, Converted std::fstream/ifstream/ofstream to osgDB::fstream/ifstream/ofstream and
fopen to osgDB::fopen to facilitate support for wide character filenames using UT8 encoding.
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
#include <osg/CoordinateSystemNode>
|
||||
|
||||
#include <osgDB/FileUtils>
|
||||
#include <osgDB/fstream>
|
||||
#include <osgDB/ReadFile>
|
||||
|
||||
#include <osgText/Text>
|
||||
@@ -243,7 +244,7 @@ int main(int argc, char **argv)
|
||||
std::string flightpath_filename;
|
||||
while (arguments.read("--flight-path",flightpath_filename))
|
||||
{
|
||||
std::ifstream fin(flightpath_filename.c_str());
|
||||
osgDB::ifstream fin(flightpath_filename.c_str());
|
||||
if (fin)
|
||||
{
|
||||
osg::AnimationPath* path = new osg::AnimationPath;
|
||||
|
||||
Reference in New Issue
Block a user