|
RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
|
A running curve. More...
#include <motion.h>
Data Fields | |
| uint32_t | elapsed_ms |
| uint32_t | duration_ms |
| rmgui_motion_ease_t | ease |
A running curve.
The host starts one by assignment, (rmgui_motion_tween_t){0, duration_ms, ease}, and reads its progress with rmgui_motion_ease(t.ease, t.elapsed_ms, t.duration_ms).
rmgui_motion_tween_t.elapsed_ms
advanced by rmgui_motion_tween_step, never past duration_ms
| uint32_t rmgui_motion_tween_t::elapsed_ms |
| uint32_t rmgui_motion_tween_t::duration_ms |
| rmgui_motion_ease_t rmgui_motion_tween_t::ease |