Function renderUI

Synopsis

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

void renderUI(Gui::Widgets &widget)

Description

Render the UI.

Source

Lines 267-279 in Source/Falcor/Scene/Animation/AnimationController.cpp. Line 110 in Source/Falcor/Scene/Animation/AnimationController.h.

void AnimationController::renderUI(Gui::Widgets& widget)
{
    widget.checkbox("Loop Animations", mLoopAnimations);
    widget.tooltip("Enable/disable global animation looping.");
    for (auto& animation : mAnimations)
    {
        if (auto animGroup = widget.group(animation->getName()))
        {
            animation->renderUI(animGroup);
        }
    }
}





Add Discussion as Guest

Log in