root/OpenSceneGraph/trunk/src/osgAnimation/ActionCallback.cpp
@
13041
| Revision 13041, 0.9 kB (checked in by robert, 15 months ago) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | /* -*-c++-*- |
| 2 | * Copyright (C) 2009 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/ActionCallback> |
| 16 | #include <osgAnimation/Timeline> |
| 17 | |
| 18 | void osgAnimation::RunAction::operator()(Action* action, ActionVisitor* visitor) |
| 19 | { |
| 20 | Timeline* tm = visitor->getCurrentTimeline(); |
| 21 | tm->addActionNow(_action.get(), _priority); |
| 22 | } |
Note: See TracBrowser
for help on using the browser.
