Function getChannel

Synopsis

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

uint32_t getChannel(uint32_t matrixID) const

Description

Get the channel for a given matrix ID or kInvalidChannel if not available

Source

Lines 192-199 in Source/Falcor/Scene/Animation/Animation.cpp. Line 70 in Source/Falcor/Scene/Animation/Animation.h.

uint32_t Animation::getChannel(uint32_t matrixID) const
{
    for (uint32_t i = 0; i < mChannels.size(); ++i)
    {
        if (mChannels[i].matrixID == matrixID) return i;
    }
    return kInvalidChannel;
}





Add Discussion as Guest

Log in