Show
Ignore:
Timestamp:
11/07/08 16:08:08 (6 years ago)
Author:
robert
Message:

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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osg2cpp/osg2cpp.cpp

    r8937 r9124  
    44#include <osgDB/ReadFile> 
    55#include <osgDB/FileNameUtils> 
     6#include <osgDB/fstream> 
    67 
    78#include <iostream> 
    8 #include <fstream> 
    99 
    1010void writeShader(osg::Shader* shader, const std::string& cppFileName, const std::string& variableName) 
    1111{ 
    12     std::ofstream fout(cppFileName.c_str()); 
     12    osgDB::ofstream fout(cppFileName.c_str()); 
    1313    if (!fout) 
    1414    {