Skip to content

Conversation

insaane00
Copy link

… to point to any memory needed by their loader function which defeats the need of making more globals for them and allows for cleaner code.

Update documentation to reflect the changes.
Add global pointer tmx_img_load_data which allows the user to supply any additional memory needed by their loader in a clean way like a struct making the lib more flexible. Such example would be an SDL_Renderer pointer defined inside a scope.

… to point to any memory needed by their loader function which defeats the need of making more globals for them and allows for cleaner code.

Update documentation to reflect the changes.
Add global pointer tmx_img_load_data which allows the user to supply any additional memory needed by their loader. Such example would be an SDL_Renderer pointer defined inside a scope.
@baylej
Copy link
Owner

baylej commented Jan 12, 2021

Sorry for not writing earlier...
In the end, it still uses a global, it is just added in libTMX code instead of the user's code, I don't really see the added value here.
Thanks for the time and effort.

@baylej baylej force-pushed the master branch 12 times, most recently from cff450c to 3032fe4 Compare March 11, 2024 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants