[][src]Function sdl2_sys::SDL_GetColorKey

pub unsafe extern "C" fn SDL_GetColorKey(
    surface: *mut SDL_Surface,
    key: *mut Uint32
) -> c_int

\brief Gets the color key (transparent pixel) in a blittable surface.

\param surface The surface to update \param key A pointer filled in with the transparent pixel in the native surface format

\return 0 on success, or -1 if the surface is not valid or colorkey is not enabled.