cf_push_text_id¶
Category: text
GitHub: cute_draw.h
Push a text id for text drawing.
Parameters | Description |
---|---|
id | The text id. |
Remarks¶
The default behaviour for text effect is such that: every time a new string is passed to cf_draw_text,
the text effects will be reinitialized.
This can be jarring in some cases.
To override this behaviour, you can use this function, passing it a stable identifier.
All subsequent calls to cf_draw_text with the same id
will have the same CF_TextEffect.elapsed
value,
creating the illusion of continuous text effect.
Pushing an id
of 0 will also reset to the default behaviour.