Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context parameters for update and render functions #139

Open
smlavine opened this issue Nov 20, 2023 · 0 comments
Open

Context parameters for update and render functions #139

smlavine opened this issue Nov 20, 2023 · 0 comments

Comments

@smlavine
Copy link

Hello,

Currently, the update and render callback functions take no arguments. The only way to access window information is via global state, which restricts the options available for program design. I propose that the signatures for the update and render functions be changed to include a pointer to the window that is calling the function.

Yes, this would be a breaking change, but I think it's a good one worth considering.

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

No branches or pull requests

1 participant