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:
@@ -3,13 +3,13 @@
|
||||
|
||||
#include <osgDB/ReadFile>
|
||||
#include <osgDB/FileNameUtils>
|
||||
#include <osgDB/fstream>
|
||||
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
||||
void writeShader(osg::Shader* shader, const std::string& cppFileName, const std::string& variableName)
|
||||
{
|
||||
std::ofstream fout(cppFileName.c_str());
|
||||
osgDB::ofstream fout(cppFileName.c_str());
|
||||
if (!fout)
|
||||
{
|
||||
std::cout<<"Error: could not open file `"<<cppFileName<<"` for writing."<<std::endl;
|
||||
|
||||
Reference in New Issue
Block a user