and yet more cleanup...
This commit is contained in:
parent
26e855369d
commit
cf43538518
16 changed files with 80 additions and 107 deletions
|
|
@ -39,9 +39,7 @@ void pxl8_transition_destroy(pxl8_transition* transition) {
|
|||
f32 pxl8_transition_get_progress(const pxl8_transition* transition) {
|
||||
if (!transition) return 0.0f;
|
||||
|
||||
f32 t = transition->time / transition->duration;
|
||||
if (t < 0.0f) t = 0.0f;
|
||||
if (t > 1.0f) t = 1.0f;
|
||||
f32 t = pxl8_clamp(transition->time / transition->duration, 0.0f, 1.0f);
|
||||
|
||||
return transition->reverse ? 1.0f - t : t;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue