[][src]Function khronos_egl::create_window_surface

pub unsafe fn create_window_surface(
    display: Display,
    config: Config,
    window: NativeWindowType,
    attrib_list: Option<&[Int]>
) -> Result<Surface, Error>

Create a new EGL window surface.

This will return a BadParameter error if attrib_list is not a valid attributes list (if it does not terminate with NONE).

Since this function may raise undefined behavior if the display and native window do not belong to the same platform, it is inherently unsafe.