What’s the best cross-platform way to signify an “unsupported hardware” error when trying to create a Display context? Say I set ContextAttribs to OpenGL 3.3 but the driver only has 3.2 support. How can I notify the user about this in a nice way i.e. not using System.err.println(). AWT messagebox? Or Swing? Or does LWJGL have a built-in method?
JOptionPane.showMessageDialog(null, "Yo shit's broke man.");
;D
That’s Swing yeah? Ok, if that’s the way to do it I’ll do it.
Ooh that looks nice. I shall use it forthwith.
The problem with a null-parent JOptionPane is that it doesn’t show up with its own task bar item on Windows; so if the dialog doesn’t have focus you need to Alt + Tab to find it.
Sweet, good to know!