RenderInfo amb tres estats (off/dalt/baix), temps de joc i persistència; ombra, mono-dígits i easing compartits (v0.14.0)
This commit is contained in:
1 parent
46a578fd86
commit
6f3fafbfff
17 files changed
+376
-97
No files matched your search
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
// Funcions de suavitzat per a animacions. Totes accepten t en el rang [0, 1]
|
||||
// i retornen un valor en [0, 1] (amb overshoot possible en algunes variants).
|
||||
// Pensades per aplicar-se al paràmetre d'un lerp.
|
||||
namespace Easing {
|
||||
|
||||
auto linear(float t) -> float;
|
||||
|
||||
auto outQuad(float t) -> float;
|
||||
auto inQuad(float t) -> float;
|
||||
auto inOutQuad(float t) -> float;
|
||||
|
||||
auto outCubic(float t) -> float;
|
||||
auto inCubic(float t) -> float;
|
||||
|
||||
auto lerp(float a, float b, float t) -> float;
|
||||
auto lerpInt(int a, int b, float t) -> int;
|
||||
|
||||
} // namespace Easing
|
||||
Reference in new issue
Block a user