irrlicht/source/Irrlicht.NET/ISceneNodeAnimator.cpp
bitplane 30b56d2ec5 Moved everything to /trunk
git-svn-id: http://svn.code.sf.net/p/irrlicht/code/trunk@643 dfc29bdd-3216-0410-991c-e03cc46cb475
2007-05-20 18:03:49 +00:00

38 lines
885 B
C++

// Copyright (C) 2002-2006 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#include "ISceneNode.h"
#include "ISceneNodeAnimator.h"
#include "NativeConverter.h"
namespace Irrlicht
{
namespace Scene
{
ISceneNodeAnimator::ISceneNodeAnimator(irr::scene::ISceneNodeAnimator* realSceneNodeAnimator)
: SceneNodeAnimator(realSceneNodeAnimator)
{
SceneNodeAnimator->grab();
}
ISceneNodeAnimator::~ISceneNodeAnimator()
{
SceneNodeAnimator->drop();
}
irr::scene::ISceneNodeAnimator* ISceneNodeAnimator::get_NativeSceneNodeAnimator()
{
return SceneNodeAnimator;
}
/// Animates a scene node.
void ISceneNodeAnimator::animateNode(ISceneNode* node, int timeMs)
{
SceneNodeAnimator->animateNode(node->get_NativeSceneNode(), timeMs);
}
}
}