Fixes for Win32 build related to changes in using namespace std.
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
#else
|
#else
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
using std::istream;
|
using std::istream;
|
||||||
|
using std::ifstream;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace osgDB {
|
namespace osgDB {
|
||||||
|
|||||||
@@ -42,6 +42,10 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
|
#ifndef OSG_USE_IO_DOT_H
|
||||||
|
using std::ios;
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef signed char int8;
|
typedef signed char int8;
|
||||||
typedef unsigned char uint8;
|
typedef unsigned char uint8;
|
||||||
typedef signed short int16;
|
typedef signed short int16;
|
||||||
|
|||||||
@@ -392,7 +392,7 @@ bool StateSet_writeLocalData(const Object& obj, Output& fw)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// no name defined for GLMode so just pass its value to fw.
|
// no name defined for GLMode so just pass its value to fw.
|
||||||
fw.indent() << "0x" << hex << (osg::uint)mitr->first << dec <<" " << StateSet_getModeStr(mitr->second) << endl;
|
fw.indent() << "0x" << std::hex << (osg::uint)mitr->first << std::dec <<" " << StateSet_getModeStr(mitr->second) << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -106,13 +106,13 @@ bool Stencil_writeLocalData(const Object& obj,Output& fw)
|
|||||||
|
|
||||||
fw.indent() << "function " << Stencil_getFuncStr(stencil.getFunction()) << endl;
|
fw.indent() << "function " << Stencil_getFuncStr(stencil.getFunction()) << endl;
|
||||||
fw.indent() << "functionRef " << stencil.getFunctionRef() << endl;
|
fw.indent() << "functionRef " << stencil.getFunctionRef() << endl;
|
||||||
fw.indent() << "functionMask 0x" << hex << stencil.getFunctionMask() << dec << endl;
|
fw.indent() << "functionMask 0x" << std::hex << stencil.getFunctionMask() << std::dec << endl;
|
||||||
|
|
||||||
fw.indent() << "stencilFailOperation " << Stencil_getOperationStr(stencil.getStencilFailOperation()) << endl;
|
fw.indent() << "stencilFailOperation " << Stencil_getOperationStr(stencil.getStencilFailOperation()) << endl;
|
||||||
fw.indent() << "stencilPassAndDepthFailOperation " << Stencil_getOperationStr(stencil.getStencilPassAndDepthFailOperation()) << endl;
|
fw.indent() << "stencilPassAndDepthFailOperation " << Stencil_getOperationStr(stencil.getStencilPassAndDepthFailOperation()) << endl;
|
||||||
fw.indent() << "stencilPassAndDepthPassOperation " << Stencil_getOperationStr(stencil.getStencilPassAndDepthPassOperation()) << endl;
|
fw.indent() << "stencilPassAndDepthPassOperation " << Stencil_getOperationStr(stencil.getStencilPassAndDepthPassOperation()) << endl;
|
||||||
|
|
||||||
fw.indent() << "writeMask 0x" << hex << stencil.getWriteMask() << dec << endl;
|
fw.indent() << "writeMask 0x" << std::hex << stencil.getWriteMask() << std::dec << endl;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user