root/OpenSceneGraph/trunk/src/osgAnimation/TimelineAnimationManager.cpp @ 13041

Revision 13041, 1.3 kB (checked in by robert, 2 years ago)

Ran script to remove trailing spaces and tabs

  • Property svn:eol-style set to native
Line 
1/*  -*-c++-*-
2 *  Copyright (C) 2008 Cedric Pinson <cedric.pinson@plopbyte.net>
3 *
4 * This library is open source and may be redistributed and/or modified under
5 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
6 * (at your option) any later version.  The full license is in LICENSE file
7 * included with this distribution, and on the openscenegraph.org website.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 * OpenSceneGraph Public License for more details.
13*/
14
15#include <osgAnimation/Timeline>
16#include <osgAnimation/TimelineAnimationManager>
17
18using namespace osgAnimation;
19
20TimelineAnimationManager::TimelineAnimationManager()
21{
22    _timeline = new Timeline;
23}
24
25TimelineAnimationManager::TimelineAnimationManager(const AnimationManagerBase& manager) : AnimationManagerBase(manager)
26{
27    _timeline = new Timeline;
28}
29
30TimelineAnimationManager::TimelineAnimationManager(const TimelineAnimationManager& nc,const osg::CopyOp& co) : AnimationManagerBase(nc, co)
31{
32    _timeline = new Timeline(*nc.getTimeline());
33}
34
35void TimelineAnimationManager::update(double time)
36{
37    // clearTargets();
38    _timeline->setAnimationManager(this);
39    _timeline->update(time);
40}
Note: See TracBrowser for help on using the browser.