Function fermium::surface::SDL_GetColorKey
source · pub unsafe extern "C" fn SDL_GetColorKey(
surface: *mut SDL_Surface,
key: *mut u32
) -> c_int
Expand description
Gets the color key (transparent pixel) in a blit-able surface.
surface
: The surface to updatekey
: 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.