Add setting to try OpenGL ES first

This commit is contained in:
Richard 2021-12-15 02:07:13 -03:00
parent 46fb27b104
commit 230db88fb2
3 changed files with 34 additions and 4 deletions

View file

@ -38,6 +38,12 @@ pub struct Settings<Flags> {
/// Whether the [`Application`] should exit when the user requests the
/// window to close (e.g. the user presses the close button).
pub exit_on_close_request: bool,
/// Whether the [`Application`] should try to build the context
/// using OpenGL ES first then OpenGL.
///
/// NOTE: Only works for the `glow` backend.
pub try_opengles_first: bool,
}
/// The window settings of an application.