Closed PR77 closed 4 years ago
Ended up having to use a global. Pending time, might see what it might take to add this to the library. Additionally, I would also like to have a userData pointer specific to each Frame and not just a single for the UI object.
Issue closed.
Hi there,
I have the following code snippet for an overlay;
With multiple frames all works very well, however I would like to make an element of the overlay dynamic based on a value passed in state->userData. Is it possible for the main loop to "know" when the overlay is being rendered and assign an object to state->userData? Perhaps something like;
EDIT: I want to avoid global variables basically by using the userData pointer in addition to the overlays.
Thanks!