From 06355581364913e552895c039ec7574aa34f43b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Fri, 30 Dec 2016 15:31:15 -0800 Subject: [PATCH] easing: Added enum with all supported functions. --- include/bx/easing.h | 50 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/include/bx/easing.h b/include/bx/easing.h index 776e637..2159c2e 100644 --- a/include/bx/easing.h +++ b/include/bx/easing.h @@ -14,6 +14,56 @@ namespace bx { + struct Easing + { + enum Enum + { + Linear, + InQuad, + OutQuad, + InOutQuad, + OutInQuad, + InCubic, + OutCubic, + InOutCubic, + OutInCubic, + InQuart, + OutQuart, + InOutQuart, + OutInQuart, + InQuint, + OutQuint, + InOutQuint, + OutInQuint, + InSine, + OutSine, + InOutSine, + OutInSine, + InExpo, + OutExpo, + InOutExpo, + OutInExpo, + InCirc, + OutCirc, + InOutCirc, + OutInCirc, + InElastic, + OutElastic, + InOutElastic, + OutInElastic, + InBack, + OutBack, + InOutBack, + OutInBack, + InBounce, + OutBounce, + InOutBounce, + OutInBounce, + + Count + }; + }; + typedef float (*EaseFn)(float _t); template