-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add events related to the display state of the window #248
Add events related to the display state of the window #248
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see no downside to exposing these, given how simple they are to implement!
Thank you for the PR! |
I noticed after merging that |
I'm not sure if I'm understanding what you're saying correctly, but on MacOS, minimizing and unminimizing a window seems to cause |
Ugh, that must be platform-specific, then, because it doesn't happen on Windows. I'll document that. |
Ok.
|
Yeah, I think I might remove them for now - the only consistent way to trigger them on all platforms seems to be to call And yep, those other three events work fine on Windows. |
I am currently working on a tool that displays images from a large number of external files.
I need these events to unload textures from VRAM when the window is minimized.
(This requires that
tetra::graphics::present
is called at least once in the tetra lifecycle after the user has released textures)