git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14770 16af8721-9629-0410-8352-f15c8da7e697
32 lines
925 B
C++
32 lines
925 B
C++
/* -*-c++-*- OpenSceneGraph - Copyright (C) Cedric Pinson
|
|
*
|
|
* This application is open source and may be redistributed and/or modified
|
|
* freely and without restriction, both in commercial and non commercial
|
|
* applications, as long as this copyright notice is maintained.
|
|
*
|
|
* This application is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
*
|
|
*/
|
|
|
|
#ifndef ANIMATION_VISITOR
|
|
#define ANIMATION_VISITOR
|
|
|
|
#include <osgUtil/UpdateVisitor>
|
|
#include <osgAnimation/UpdateMatrixTransform>
|
|
#include <osgAnimation/AnimationManagerBase>
|
|
#include <osgAnimation/BasicAnimationManager>
|
|
|
|
|
|
// the idea is to create true Geometry if skeleton with RigGeometry
|
|
class AnimationVisitor : public osgUtil::UpdateVisitor
|
|
{
|
|
public:
|
|
AnimationVisitor() {
|
|
setFrameStamp(new osg::FrameStamp());
|
|
}
|
|
};
|
|
|
|
#endif
|