File tween.hpp

Defines

TWEEN_TYPE_MAX

Enums

enum class TweenType

Values:

enumerator LINEAR
enumerator INSINE
enumerator OUTSINE
enumerator INOUTSINE
enumerator INQUAD
enumerator OUTQUAD
enumerator INOUTQUAD
enumerator INCUBIC
enumerator OUTCUBIC
enumerator INOUTCUBIC
enumerator INQUART
enumerator OUTQUART
enumerator INOUTQUART
enumerator INQUINT
enumerator OUTQUINT
enumerator INOUTQUINT
enumerator INEXPO
enumerator OUTEXPO
enumerator INOUTEXPO
enumerator INCIRC
enumerator OUTCIRC
enumerator INOUTCIRC
enumerator INBACK
enumerator OUTBACK
enumerator INOUTBACK
enumerator INELASTIC
enumerator OUTELASTIC
enumerator INOUTELASTIC
enumerator INBOUNCE
enumerator OUTBOUNCE
enumerator INOUTBOUNCE

Functions

float linear(float t)
float inSine(float t)
float outSine(float t)
float inOutSine(float t)
float inQuad(float t)
float outQuad(float t)
float inOutQuad(float t)
float inCubic(float t)
float outCubic(float t)
float inOutCubic(float t)
float inQuart(float t)
float outQuart(float t)
float inOutQuart(float t)
float inQuint(float t)
float outQuint(float t)
float inOutQuint(float t)
float inExpo(float t)
float outExpo(float t)
float inOutExpo(float t)
float inCirc(float t)
float outCirc(float t)
float inOutCirc(float t)
float inBack(float t)
float outBack(float t)
float inOutBack(float t)
float inElastic(float t)
float outElastic(float t)
float inOutElastic(float t)
float inBounce(float t)
float outBounce(float t)
float inOutBounce(float t)
struct Tween
#include <tween.hpp>

Public Members

float a
float b
float *ptr = nullptr
float duration
TweenType type = TweenType::LINEAR
float left
struct TweenLua
#include <tween.hpp>

Public Members

float a
float b
sol::userdata source
sol::userdata dest
std::string key
float duration
TweenType type = TweenType::LINEAR
float left
bool empty = true
struct TweenProvider
#include <tween.hpp>

Public Static Functions

static float tweenFunc(TweenType type, float t)
static void setupTweenFuncs()
static std::list<Tween> initPropTween(ElementProperty *dest, ElementProperty source, float duration, TweenType type)

Public Static Attributes

static std::array<std::function<float(float)>, TWEEN_TYPE_MAX> arr