8000 Cross-Platform MessageBox API for Error Reporting · Issue #2665 · glfw/glfw · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Cross-Platform MessageBox API for Error Reporting #2665

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

Open
shartte opened this issue Dec 26, 2024 · 3 comments
Open

Cross-Platform MessageBox API for Error Reporting #2665

shartte opened this issue Dec 26, 2024 · 3 comments
Labels
enhancement Feature suggestions and PRs

Comments

@shartte
Copy link
shartte commented Dec 26, 2024

It would be nice to have a GLFW API abstracting over the lowest common denominator of MessageBox (Win32) and NSAlert (Mac OS X) in order to show some error message to the user before exiting. I do not know what the equivalent of MessageBox would be on Linux.

This would be used when the creation of the OpenGL context fails, or when critical startup resources (fonts, etc.) are missing that prevent the startup error from being shown in OpenGL itself.

@johnnovak
Copy link

I use osdialog for that. Does the job fine.

@dougbinks dougbinks added the enhancement Feature suggestions and PRs label Jan 9, 2025
@dougbinks
Copy link
Contributor

I think using an external library would be better than GLFW, which tries to keep to a minimal set of APIs.

@shartte
Copy link
Author
shartte commented Jan 9, 2025

Ok that's a bit sad, since you will always require such a library if you use GLFW in a cross-platform way. Well, unless you write the needed code yourself, ofcourse.

Or maybe I am missing some obvious way to notify users on startup that GLFW window creation has failed...

p.s.: I think SDL has this for that purpose: https://wiki.libsdl.org/SDL3/SDL_ShowSimpleMessageBox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature suggestions and PRs
Projects
None yet
Development

No branches or pull requests

3 participants
0