xmake.repo/packages/n/noesis/latest/Include/NsGui/IEasingFunction.h

33 lines
975 B
C
Raw Permalink Normal View History

2024-12-22 19:15:02 +08:00
////////////////////////////////////////////////////////////////////////////////////////////////////
// NoesisGUI - http://www.noesisengine.com
// Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved.
////////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef __GUI_IEASINGFUNCTION_H__
#define __GUI_IEASINGFUNCTION_H__
#include <NsCore/Noesis.h>
#include <NsCore/Interface.h>
namespace Noesis
{
////////////////////////////////////////////////////////////////////////////////////////////////////
/// Defines the basic functionality of an easing function.
////////////////////////////////////////////////////////////////////////////////////////////////////
NS_INTERFACE IEasingFunction: public Interface
{
/// Transforms normalized time to control the pace of an animation
virtual float Ease(float normalizedTime) = 0;
NS_IMPLEMENT_INLINE_REFLECTION_(IEasingFunction, Interface)
};
}
#endif