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/osgvolume/osgvolume.cpp

    r9105 r9124  
    14481448osg::Image* readRaw(int sizeX, int sizeY, int sizeZ, int numberBytesPerComponent, int numberOfComponents, const std::string& endian, const std::string& raw_filename) 
    14491449{ 
    1450     std::ifstream fin(raw_filename.c_str(), std::ifstream::binary); 
     1450    osgDB::ifstream fin(raw_filename.c_str(), std::ifstream::binary); 
    14511451    if (!fin) return 0; 
    14521452 
     
    17121712 
    17131713    osg::TransferFunction1D::ValueMap valueMap; 
    1714     std::ifstream fin(foundFile.c_str()); 
     1714    osgDB::ifstream fin(foundFile.c_str()); 
    17151715    while(fin) 
    17161716    { 
     
    19591959        int xdim(0), ydim(0), zdim(0); 
    19601960 
    1961         std::ifstream header(vh_filename.c_str()); 
     1961        osgDB::ifstream header(vh_filename.c_str()); 
    19621962        if (header) 
    19631963        { 
     
    19781978        if (!transfer_filename.empty()) 
    19791979        { 
    1980             std::ifstream fin(transfer_filename.c_str()); 
     1980            osgDB::ifstream fin(transfer_filename.c_str()); 
    19811981            if (fin) 
    19821982            {