Replaced tabs with spaces in examples.
This commit is contained in:
parent
39db6b28b3
commit
91855e7c50
@ -75,8 +75,7 @@ bool TechniqueEventHandler::handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIAc
|
||||
ea.getKey()==osgGA::GUIEventAdapter::KEY_KP_Right)
|
||||
{
|
||||
_eq_index++;
|
||||
if (_eq_index>=_eq_nb)
|
||||
_eq_index=0;
|
||||
if (_eq_index>=_eq_nb) _eq_index=0;
|
||||
_blendEq->setEquation(_equations[_eq_index]);
|
||||
std::cout<<"Equation name = "<<_equations_name[_eq_index]<<std::endl;
|
||||
return true;
|
||||
@ -85,8 +84,7 @@ bool TechniqueEventHandler::handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIAc
|
||||
ea.getKey()==osgGA::GUIEventAdapter::KEY_KP_Left)
|
||||
{
|
||||
_eq_index--;
|
||||
if (_eq_index<0)
|
||||
_eq_index=_eq_nb-1;
|
||||
if (_eq_index<0) _eq_index=_eq_nb-1;
|
||||
_blendEq->setEquation(_equations[_eq_index]);
|
||||
std::cout<<"Operation name = "<<_equations_name[_eq_index]<<std::endl;
|
||||
return true;
|
||||
@ -203,8 +201,6 @@ int main( int argc, char **argv )
|
||||
// fire off the cull and draw traversals of the scene.
|
||||
viewer.frame();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
// wait for all cull and draw threads to complete before exit.
|
||||
|
@ -73,7 +73,6 @@ protected:
|
||||
TechniqueEventHandler(const TechniqueEventHandler&,const osg::CopyOp&) {}
|
||||
|
||||
osg::LogicOp* _logicOp;
|
||||
|
||||
int _ops_index;
|
||||
|
||||
};
|
||||
@ -88,8 +87,7 @@ bool TechniqueEventHandler::handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIAc
|
||||
ea.getKey()==osgGA::GUIEventAdapter::KEY_KP_Right)
|
||||
{
|
||||
_ops_index++;
|
||||
if (_ops_index>=_ops_nb)
|
||||
_ops_index=0;
|
||||
if (_ops_index>=_ops_nb) _ops_index=0;
|
||||
_logicOp->setOpcode(_operations[_ops_index]);
|
||||
std::cout<<"Operation name = "<<_ops_name[_ops_index]<<std::endl;
|
||||
return true;
|
||||
@ -98,8 +96,7 @@ bool TechniqueEventHandler::handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIAc
|
||||
ea.getKey()==osgGA::GUIEventAdapter::KEY_KP_Left)
|
||||
{
|
||||
_ops_index--;
|
||||
if (_ops_index<0)
|
||||
_ops_index=_ops_nb-1;
|
||||
if (_ops_index<0) _ops_index=_ops_nb-1;
|
||||
_logicOp->setOpcode(_operations[_ops_index]);
|
||||
std::cout<<"Operation name = "<<_ops_name[_ops_index]<<std::endl;
|
||||
return true;
|
||||
@ -151,7 +148,6 @@ int main( int argc, char **argv )
|
||||
|
||||
stateset->setAttributeAndModes(logicOp,osg::StateAttribute::OVERRIDE|osg::StateAttribute::ON);
|
||||
|
||||
|
||||
//tell to sort the mesh before displaying it
|
||||
stateset->setRenderingHint(osg::StateSet::TRANSPARENT_BIN);
|
||||
|
||||
@ -215,9 +211,6 @@ int main( int argc, char **argv )
|
||||
|
||||
// fire off the cull and draw traversals of the scene.
|
||||
viewer.frame();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
// wait for all cull and draw threads to complete before exit.
|
||||
|
Loading…
Reference in New Issue
Block a user