Function create

Synopsis

#include <Source/Falcor/Scene/Animation/Animation.h>

static SharedPtr create(const std::string &name, uint32_t nodeID, double duration)

Description

Create a new animation.

Parameters

[ in ] name - Animation name.

[ in ] nodeID - ID of the animated node.

[ in ] Animation - duration in seconds.

Returns
Returns a new animation.

Source

Lines 107-110 in Source/Falcor/Scene/Animation/Animation.cpp. Line 68 in Source/Falcor/Scene/Animation/Animation.h.

Animation::SharedPtr Animation::create(const std::string& name, uint32_t nodeID, double duration)
{
    return SharedPtr(new Animation(name, nodeID, duration));
}





Add Discussion as Guest

Log in