Browse Source

easing: Added enum with all supported functions.

Branimir Karadžić 9 years ago
parent
commit
0635558136
1 changed files with 50 additions and 0 deletions
  1. 50 0
      include/bx/easing.h

+ 50 - 0
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<EaseFn ease>