[][src]Function khronos_egl::choose_first_config

pub fn choose_first_config(
    display: Display,
    attrib_list: &[Int]
) -> Result<Option<Config>, Error>

Return the first EGL frame buffer configuration that match specified attributes.

This is an helper function that will call choose_config with a buffer of size 1, which is equivalent to:

let mut configs = Vec::with_capacity(1);
egl::choose_config(display, &attrib_list, &mut configs)?;
configs.first();