diff --git a/examples/osganimationeasemotion/osganimationeasemotion.cpp b/examples/osganimationeasemotion/osganimationeasemotion.cpp index 2941fa666..35aca1eb9 100644 --- a/examples/osganimationeasemotion/osganimationeasemotion.cpp +++ b/examples/osganimationeasemotion/osganimationeasemotion.cpp @@ -57,7 +57,9 @@ osg::Geometry* createEaseMotionGeometry(osgAnimation::Motion* motion) { return geom; } -struct EaseMotionSampler: public osg::NodeCallback { +class EaseMotionSampler: public osg::NodeCallback +{ +public: float _previous; osg::Vec3 _pos;