> home > Custom Layer Boundary API

animate_in_n_milliseconds

January 19th 2020
Set a wakeup timer to run a 4coder update tick and render

Signature

C++
void
animate_in_n_milliseconds(Application_Links* app,
                          u32 n);

Parameters

app

the standard custom layer context pointer

n

the number of milliseconds roughly approximating how long to wait until sending a wakeup signal, the wakeup is always delayed by a minimum of a 16 milliseconds

Details

Without an animate timer set, 4coder only wakes up when events are sent to it. When there is an animation timer, 4coder wakes up when the animation timer triggers a timer event.