Fixed compilation problems under Windows due to changes in using std::ostream etc.
This commit is contained in:
parent
6c38b61185
commit
b3cfed2cb2
@ -14,6 +14,7 @@
|
||||
#else
|
||||
#include <iostream>
|
||||
using std::ostream;
|
||||
using std::endl;
|
||||
#endif
|
||||
|
||||
// temporary #define to keep backwards compatibility.
|
||||
|
@ -15,6 +15,9 @@
|
||||
#include <fstream>
|
||||
using std::ostream;
|
||||
using std::ofstream;
|
||||
using std::endl;
|
||||
using std::cout;
|
||||
using std::cerr;
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -303,7 +303,7 @@ void SceneView::draw()
|
||||
{
|
||||
osg::ref_ptr<osg::Camera> left_camera = new osg::Camera(*_camera);
|
||||
osg::ref_ptr<osg::Camera> right_camera = new osg::Camera(*_camera);
|
||||
float iod = 0.05;
|
||||
float iod = 0.05f;
|
||||
|
||||
left_camera->adjustEyeOffsetForStereo(osg::Vec3(-iod*0.5,0.0f,0.0f),_screenDistance);
|
||||
right_camera->adjustEyeOffsetForStereo(osg::Vec3(iod*0.5,0.0f,0.0f),_screenDistance);
|
||||
@ -323,7 +323,7 @@ void SceneView::draw()
|
||||
{
|
||||
osg::ref_ptr<osg::Camera> left_camera = new osg::Camera(*_camera);
|
||||
osg::ref_ptr<osg::Camera> right_camera = new osg::Camera(*_camera);
|
||||
float iod = 0.05;
|
||||
float iod = 0.05f;
|
||||
|
||||
left_camera->adjustEyeOffsetForStereo(osg::Vec3(-iod*0.5,0.0f,0.0f),_screenDistance);
|
||||
right_camera->adjustEyeOffsetForStereo(osg::Vec3(iod*0.5,0.0f,0.0f),_screenDistance);
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include <osg/GeoSet>
|
||||
#include <osg/Geode>
|
||||
#include <osg/Types>
|
||||
#include <osg/Notify>
|
||||
|
||||
#include <osgUtil/TriStripVisitor>
|
||||
|
||||
@ -293,7 +294,7 @@ void TriStripVisitor::stripify(GeoSet& gset)
|
||||
}
|
||||
else
|
||||
{
|
||||
cout << "No triangles to stripify"<<endl;
|
||||
notify(INFO) << "No triangles to stripify"<<endl;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user