[−][src]Function khronos_egl::choose_config
pub fn choose_config(
display: Display,
attrib_list: &[Int],
configs: &mut Vec<Config>
) -> Result<(), Error>
Return a list of EGL frame buffer configurations that match specified attributes.
This will write as many matching configurations in configs
up to its
capacity. You can use the function matching_config_count
to get the
exact number of configurations matching the specified attributes.
Example
// Get the number of matching configurations. let count = egl::matching_config_count(display, &attrib_list)?; // Get the matching configurations. let mut configs = Vec::with_capacity(count); egl::choose_config(display, &attrib_list, &mut configs)?;
This will return a BadParameter
error if attrib_list
is not a valid
attributes list (if it does not terminate with NONE
).