mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-23 15:41:52 +00:00

Buildfixing Move some file util files Buildfix Move KeyMap.cpp/h to Core where they belong better. libretro buildfix attempt Move ini_file More buildfixes
26 lines
660 B
C
26 lines
660 B
C
#pragma once
|
|
|
|
// Easy curve computation for fades etc.
|
|
|
|
// output range: [0.0, 1.0]
|
|
float linearInOut(int t, int fadeInLength, int solidLength, int fadeOutLength);
|
|
float linearIn(int t, int fadeInLength);
|
|
float linearOut(int t, int fadeInLength);
|
|
|
|
// smooth operator [0, 1] -> [0, 1]
|
|
float ease(float val);
|
|
float ease(int t, int fadeLength);
|
|
|
|
float bezierEase(float val);
|
|
float bezierEaseInOut(float val);
|
|
float bezierEaseIn(float val);
|
|
float bezierEaseOut(float val);
|
|
|
|
// need a bouncy ease
|
|
|
|
// waveforms [0, 1]
|
|
float sawtooth(int t, int period);
|
|
|
|
// output range: -1.0 to 1.0
|
|
float passWithPause(int t, int fadeInLength, int pauseLength, int fadeOutLength);
|