Function doesKeyframeExists

Synopsis

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

bool doesKeyframeExists(uint32_t channelID, double time) const

Description

Check if a keyframe exists in a specific time

Source

Lines 253-261 in Source/Falcor/Scene/Animation/Animation.cpp. Line 88 in Source/Falcor/Scene/Animation/Animation.h.

bool Animation::doesKeyframeExists(uint32_t channelID, double time) const
{
    assert(channelID < mChannels.size());
    for (const auto& k : mChannels[channelID].keyframes)
    {
        if (k.time == time) return true;
    }
    return false;
}





Add Discussion as Guest

Log in to DocsForge