From 6fab8cadd32db3d466b1062f01bb098bd1b318ae Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 8 Jun 2016 12:15:51 +0100 Subject: [PATCH] Fixed unused parameter warning. --- examples/osgtext3D/osgtext3D_test.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/osgtext3D/osgtext3D_test.cpp b/examples/osgtext3D/osgtext3D_test.cpp index ce88ce153..70263aba2 100644 --- a/examples/osgtext3D/osgtext3D_test.cpp +++ b/examples/osgtext3D/osgtext3D_test.cpp @@ -25,7 +25,7 @@ osg::Group* test_create3DText(const osg::Vec3& center,float radius) float characterSize=radius*0.2f; float characterDepth=characterSize*0.2f; - + osg::Vec3 pos(center.x()-radius*.5f,center.y()-radius*.5f,center.z()-radius*.5f); #define SHOW_INTESECTION_CEASH #ifdef SHOW_INTESECTION_CEASH @@ -72,22 +72,22 @@ osg::Group* test_create3DText(const osg::Vec3& center,float radius) stateset->setAttributeAndModes(polymode,osg::StateAttribute::OVERRIDE|osg::StateAttribute::ON); rootNode->setStateSet(stateset); #endif - - - return rootNode; + + + return rootNode; } ////////////////////////////////////////////////////////////////////////// #include #include -class CInputHandler : public osgGA::GUIEventHandler +class CInputHandler : public osgGA::GUIEventHandler { public: CInputHandler( osg::PositionAttitudeTransform* pPatSphere ) { m_rPatSphere = pPatSphere; } - virtual bool handle( const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa, osg::Object* pObject, osg::NodeVisitor* pNodeVisitor ) + virtual bool handle( const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa, osg::Object* /*pObject*/, osg::NodeVisitor* /*pNodeVisitor*/ ) { osgViewer::Viewer* pViewer = dynamic_cast(&aa); if ( !pViewer )